.acfpc-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
}

@media (max-width: 1200px) {
	.acfpc-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 992px) {
	.acfpc-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
	.acfpc-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 576px) {
	.acfpc-grid { grid-template-columns: 1fr; }
}

/* 1. Make the card a column-flex so we can push the title bar to the bottom */
.acfpc-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none; /* for <a> wrappers */
	color: inherit;       /* for <a> wrappers */
}

/* Hover “lift” effect */
.acfpc-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* 2. Keep your logo area perfectly square, centered */
.acfpc-logo-container {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #fff;       /* light gray “box” behind the logo */
	display: flex;
	align-items: center;
	justify-content: center;
}

.acfpc-logo-container img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}

/* 3. Title bar pinned to bottom, blue background with white text */
.acfpc-title-bar {
	background: #0076C0;      /* your blue */
	padding: 0.75rem 0.5rem;   
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;         /* ensures enough room for two lines */
}

.acfpc-title-bar h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
	text-align: center;
	word-break: break-word;
}
