/* ============================================================
   Immigence — About Section B  (about-widget-B.css)
   Paste into assets/css/widgets-style.css
   OR enqueue separately — see registration steps below.
   Uses same CSS vars as main theme.
   ============================================================ */

/* ── TOP LAYOUT: left text + right photo ────────────────── */

.imm-ab-top {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 4rem;
	align-items: center;
	margin-bottom: 3rem;
}

/* Full-width text when no photo uploaded */
.imm-ab-top-text:only-child {
	grid-column: 1 / -1;
}

.imm-ab-top-text .section-sub {
	margin-bottom: 0;
}

/* ── PHOTO COLUMN ────────────────────────────────────────── */

.imm-ab-top-photo {
	position: relative;
}

.imm-ab-photo-wrap {
	position: relative;
}

/* Decorative gold accent border behind photo */
.imm-ab-photo-wrap::before {
	content: '';
	position: absolute;
	top: 12px;
	left: 12px;
	right: -12px;
	bottom: -12px;
	border: 2px solid rgba(200, 152, 60, 0.28);
	border-radius: 10px;
	z-index: 0;
	pointer-events: none;
}

.imm-ab-photo {
	position: relative;
	z-index: 1;
	width: 100%;
	display: block;
	border-radius: 8px;
	border: 3px solid rgba(200, 152, 60, 0.4);
	box-shadow: 0 20px 48px rgba(11, 29, 58, 0.18);
	object-fit: cover;
	aspect-ratio: 3 / 4;
}

/* ── NAME CARD OVERLAY (bottom of photo) ────────────────── */

.imm-ab-namecard {
	position: absolute;
	z-index: 2;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(
		to top,
		rgba(11, 29, 58, 0.92) 0%,
		rgba(11, 29, 58, 0.55) 60%,
		transparent 100%
	);
	padding: 1.75rem 1rem 0.85rem;
	border-radius: 0 0 6px 6px;
}

.imm-ab-namecard-name {
	font-family: var(--font-display, 'Libre Baskerville', Georgia, serif);
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.imm-ab-namecard-title {
	font-size: 0.72rem;
	color: var(--gold, #C8983C);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-top: 0.2rem;
}

/* ── FLOATING BADGE (top-right of photo) ────────────────── */

.imm-ab-badge {
	position: absolute;
	z-index: 3;
	top: -12px;
	right: -12px;
	background: #fff;
	color: var(--navy, #0B1D3A);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.4rem 0.65rem;
	border-radius: 6px;
	border-left: 3px solid var(--red-maple, #C1272D);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
	display: flex;
	align-items: center;
	gap: 0.3rem;
	max-width: 155px;
	line-height: 1.3;
}

.imm-ab-badge svg {
	width: 13px;
	height: 13px;
	fill: var(--red-maple, #C1272D);
	flex-shrink: 0;
}

/* ── BADGE FALLBACK (highlight bar — no image) ───────────── */

.imm-ab-badge-fallback {
	background: #fff;
	color: var(--navy, #0B1D3A);
	font-weight: 700;
	font-size: 10px;
	padding: 6px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: inline-block;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 900px) {
	.imm-ab-top {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.imm-ab-top-photo {
		max-width: 240px;
		margin: 0 auto;
	}
}