/**
 * NovaBP Tax Advisor — Section 5, Business Mentoring
 *
 * Figma reference: node 2020:2249 — centred 800px header, then a 24px-gap row of
 * tinted pillar cards (2020:2263 / 2269 / 2316) beside a 400px photograph
 * (2020:2288).
 */

.nova-tax-mentoring {
	background-color: var(--nova-tax-white);
}

.nova-tax-mentoring__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
}

.nova-tax-mentoring__header {
	--nova-tax-header-max: 800px;
}

/*
 * `align-items: stretch` lets the photograph match whatever height the cards
 * come to — Figma sets it to fill, and the card column is the taller of the two.
 */
.nova-tax-mentoring__row {
	display: flex;
	align-items: stretch;
	gap: 24px;
	width: 100%;
}

.nova-tax-mentoring__cards {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.nova-tax-mentoring__pair {
	display: flex;
	align-items: stretch;
	gap: 20px;
}

.nova-tax-mentoring__pair .nova-tax-mentoring__pillar {
	flex: 1 1 0;
	min-width: 0;
}

.nova-tax-mentoring__pillar {
	/* Inherits padding, radius, tint and border from `.nova-tax-card--surface`. */
	padding: 24px;
}

.nova-tax-mentoring__pillar-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/*
 * A background image rather than an <img>: the frame is a fixed-width column that
 * crops its photograph to whatever height the cards dictate, which `cover` does
 * and an inline image would not without an aspect-ratio guess. `role="img"` plus
 * a label on the div keeps it announced.
 */
.nova-tax-mentoring__media {
	flex: 0 0 400px;
	min-width: 0;
	padding: 16px;
	background-image: var(--nova-tax-mentoring-image, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-color: var(--nova-tax-surface);
	border: 2px solid var(--nova-tax-border);
	border-radius: 16px;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.nova-tax-mentoring__inner {
		gap: 48px;
	}

	.nova-tax-mentoring__row {
		flex-direction: column;
	}

	/*
	 * Once stacked the photograph has no cards beside it to take its height from,
	 * so it needs an explicit one or it collapses to its 32px of padding.
	 */
	.nova-tax-mentoring__media {
		flex: 0 0 auto;
		width: 100%;
		min-height: 320px;
	}
}

@media (max-width: 767px) {
	.nova-tax-mentoring__inner {
		gap: 32px;
	}

	.nova-tax-mentoring__pair {
		flex-direction: column;
	}

	.nova-tax-mentoring__pillar {
		padding: 20px;
	}

	.nova-tax-mentoring__media {
		min-height: 240px;
	}
}
