/**
 * HP Content Card — self-contained (no hp-hero selectors).
 * Grid matches hero bottom row: 1fr + 350px; global typography/buttons: .hp-text, .hp-btn
 */

.hp-content-card {
	display: grid;
	gap: 8px;
	color: #000;
}

.hp-content-card__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 8px;
	align-items: center;
}

/* Left: plain column (not a card) */
.hp-content-card__main {
	box-sizing: border-box;
	padding: 40px 40px 40px 0;
	text-align: left;
}

.hp-content-card__title {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	color: #000;
}

.hp-content-card__text {
	margin-bottom: 16px;
}

.hp-content-card__text:last-of-type {
	margin-bottom: 0;
}

.hp-content-card__btn {
	margin-top: 18px;
}

/* Right: card tile (image + bottom-aligned copy) */
.hp-content-card__side {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	aspect-ratio: 1 / 1;
	padding: 20px;
	width: 100%;
	background: var(--hp-gradient-surface);
}

.hp-content-card__side-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	z-index: 0;
}

.hp-content-card__side-body {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: left;
	padding: 16px;
}

.hp-content-card__text--side {
	margin-bottom: 12px;
}

.hp-content-card__btn--side {
	margin-top: 0;
}

@media (max-width: 991px) {
	.hp-content-card__title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.hp-content-card__row {
		grid-template-columns: 1fr;
	}

	.hp-content-card__main {
		padding: 24px 0;
		order: 1;
	}

	/* Side card: 60% text area | 40% image (6fr / 4fr) */
	.hp-content-card__side {
		order: 2;
		aspect-ratio: unset;
		min-height: 0;
		padding: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: minmax(0, auto);
		align-items: end;
		column-gap: 0;
		min-height: 250px;
	}

	.hp-content-card__side-body {
		grid-column: 1;
		grid-row: 1;
		align-self: center;
		min-width: 0;
		margin-top: auto;
	}

	.hp-content-card__side-img {
		grid-column: 2;
		grid-row: 1;
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: 100%;
		min-height: 120px;
		align-self: stretch;
	}

	.hp-content-card__title {
		font-size: 22px;
	}
}

@media (max-width: 500px) {
	.hp-content-card__side {
		aspect-ratio: 1 / 1;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		padding: 16px;
	}

	.hp-content-card__side-img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
		pointer-events: none;
		z-index: 0;
	}

	.hp-content-card__side-body {
		padding: 0;
	}
}