/* ==========================================================================
   NFCR program cards  [nfcr_program_cards]
   Cards share three grid rows (photo header, program 1, program 2) via subgrid,
   so the text blocks and buttons line up across the cards.
   ========================================================================== */

.nfcr-pc { font-family: var(--nfcr-font); }

.nfcr-pc .nfcr-pc__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: auto auto auto;
	column-gap: 20px;
	row-gap: 0;
}

.nfcr-pc .nfcr-pc__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--nfcr-white);
	border-radius: var(--nfcr-r-section);
	box-shadow: var(--nfcr-shadow);
}
@supports (grid-template-rows: subgrid) {
	.nfcr-pc .nfcr-pc__card {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 0;
	}
}

/* Photo header */
.nfcr-pc .nfcr-pc__media { position: relative; height: 240px; background: var(--nfcr-line-chip); }
.nfcr-pc .nfcr-pc__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.nfcr-pc .nfcr-pc__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 40%, var(--nfcr-navy) 100%); /* fallback */
	background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--nfcr-navy) 88%, transparent) 100%);
}
.nfcr-pc .nfcr-pc__heading { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 20px; }
.nfcr-pc .nfcr-pc__eyebrow {
	display: block;
	font-size: var(--nfcr-fs-label);
	font-weight: 700;
	letter-spacing: .8px;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--nfcr-orange-soft);
}
.nfcr-pc .nfcr-pc__title {
	margin: 4px 0 0;
	padding: 0;
	font-family: var(--nfcr-font);
	font-size: var(--nfcr-fs-h3-xl);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.5px;
	color: #fff;
	text-transform: none;
}

/* Programs */
.nfcr-pc .nfcr-pc__entry {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 30px;
	padding: 24px 0 20px;
	border-bottom: 1px solid var(--nfcr-line);
}
.nfcr-pc .nfcr-pc__entry + .nfcr-pc__entry { padding: 20px 0 28px; border-bottom: 0; }
.nfcr-pc .nfcr-pc__name {
	margin: 0;
	padding: 0;
	font-family: var(--nfcr-font);
	font-size: var(--nfcr-fs-h3);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.3px;
	color: var(--nfcr-navy);
	text-transform: none;
}
.nfcr-pc .nfcr-pc__text { margin: 0; font-size: var(--nfcr-fs-body); line-height: 1.68; color: var(--nfcr-text); }
/* Bold lead-in line (first paragraph when the text has two) */
.nfcr-pc .nfcr-pc__lead { font-weight: 600; color: var(--nfcr-navy); }
.nfcr-pc .nfcr-pc__button { align-self: flex-start; margin-top: auto; }
.nfcr-pc .nfcr-pc__button svg { margin-left: 2px; }

/* 0.9.32: several buttons in one program: a wrapping row, pinned to the bottom of the program block (first solid, others outlined) */
.nfcr-pc .nfcr-pc__buttons { display: flex; flex-wrap: wrap; gap: 10px; align-self: flex-start; margin-top: auto; padding-top: 4px; }
.nfcr-pc .nfcr-pc__buttons .nfcr-pc__button { margin-top: 0; }

/* Bar underneath */
.nfcr-pc .nfcr-pc__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 20px;
	padding: 22px 30px;
	background: var(--nfcr-white);
	border-radius: var(--nfcr-r-card);
	box-shadow: var(--nfcr-shadow);
}
.nfcr-pc .nfcr-pc__note { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.nfcr-pc .nfcr-pc__note--help { align-items: flex-start; }
.nfcr-pc .nfcr-pc__note p { margin: 0; }
.nfcr-pc .nfcr-pc__note-title { font-size: var(--nfcr-fs-body); font-weight: 600; line-height: 1.5; color: var(--nfcr-navy); }
.nfcr-pc .nfcr-pc__note-text { font-size: var(--nfcr-fs-body); line-height: 1.6; color: var(--nfcr-text); }
.nfcr-pc .nfcr-pc__phone svg { margin: 0 4px 0 0; vertical-align: -2px; }

/* Responsive: one card per row on tablets and phones */
@media (max-width: 1100px) {
	.nfcr-pc .nfcr-pc__grid { display: flex; flex-direction: column; gap: 20px; }
	.nfcr-pc .nfcr-pc__card { display: flex; grid-row: auto; }
	.nfcr-pc .nfcr-pc__entry--empty { display: none; }
}
@media (max-width: 767px) {
	.nfcr-pc .nfcr-pc__media { height: 200px; }
	.nfcr-pc .nfcr-pc__heading { left: 20px; right: 20px; }
	.nfcr-pc .nfcr-pc__entry { margin: 0 22px; }
	.nfcr-pc .nfcr-pc__bar { padding: 20px 22px; }
}
