/* ── BB Premium: Image + Text ─────────────────────────────────────────────── */

.bbpe-it { width: 100%; }

.bbpe-it__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

/* ── Image column ────────────────────────────────────────────────────────── */
.bbpe-it__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
}

.bbpe-it__caption {
	font-size: 0.875rem;
	color: #94a3b8;
	margin-top: 0.5rem;
	text-align: center;
}

/* ── Text column ─────────────────────────────────────────────────────────── */
.bbpe-it__eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6366f1;
	margin-bottom: 0.75rem;
}

.bbpe-it__title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	color: #0f172a;
	margin-bottom: 1rem;
}

.bbpe-it__content {
	font-size: 1rem;
	line-height: 1.8;
	color: #475569;
	margin-bottom: 1.5rem;
}

.bbpe-it__content p:last-child { margin-bottom: 0; }

.bbpe-it__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #6366f1;
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.bbpe-it__btn:hover,
.bbpe-it__btn:focus-visible {
	background-color: #4f46e5;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
	text-decoration: none;
}

/* ── Image Right ─────────────────────────────────────────────────────────── */
/*
 * image-right.php: text first in DOM, image second.
 * LTR grid flow naturally places text left, image right — no extra CSS needed.
 */

/* ── Overlap ─────────────────────────────────────────────────────────────── */
/*
 * Flexbox approach: the card uses a negative left margin to slide under
 * the image. Negative margins work correctly with flexbox (unlike CSS Grid).
 * No overflow:hidden needed — the card naturally sits behind the image (z-index).
 */
.bbpe-it--overlap .bbpe-it__grid {
	display: flex;          /* override the base grid */
	gap: 0;                 /* gap is handled via the negative margin below */
	align-items: center;
}

.bbpe-it__image--overlap {
	flex: 0 0 55%;
	max-width: 55%;
	position: relative;
	z-index: 2;             /* image sits on top of the card */
}

.bbpe-it__image--overlap img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.bbpe-it__card {
	flex: 1;
	position: relative;
	z-index: 1;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);

	/* Pull the card 48px to the left so it slides under the image */
	margin-left: -48px;

	/* Compensate with left padding so text doesn't hide behind the image */
	padding: 48px 40px 48px 72px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.bbpe-it__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Reset overlap to stacked layout */
	.bbpe-it--overlap .bbpe-it__grid {
		flex-direction: column;
		gap: 0;
	}

	.bbpe-it__image--overlap {
		flex: none;
		width: 100%;
		max-width: 100%;
	}

	.bbpe-it__card {
		margin-left: 0;
		padding: 32px;
		width: 100%;
	}
}
