/* Camphill MK Homepage Feed. Same look as the homepage cards built in Avada:
   white, 16px radius, soft shadow, 60% image, eyebrow, title, text, arrow link. */

.chfd {
	--chfd-accent:  var(--awb-color5, #2b2762);
	--chfd-eyebrow: var(--awb-color4, #7a73c4);
	--chfd-text:    var(--body_typography-color, #2b2762);
	display: grid;
	grid-template-columns: repeat(var(--chfd-cols, 3), minmax(0, 1fr));
	gap: 25px;
	container-type: inline-size;
	font-family: var(--body_typography-font-family, inherit);
}
@container (max-width: 900px) { .chfd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 600px) { .chfd { grid-template-columns: 1fr; } }
@supports not (container-type: inline-size) {
	@media (max-width: 900px) { .chfd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (max-width: 600px) { .chfd { grid-template-columns: 1fr; } }
}

.chfd .chfd-card {
	display: flex; flex-direction: column;
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 1px 1px 20px 2px rgba(140, 140, 140, 0.33);
	color: var(--chfd-text); text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.chfd .chfd-card:hover { transform: translateY(-2px); box-shadow: 1px 4px 24px 4px rgba(140, 140, 140, 0.4); }
.chfd-card__img { display: block; aspect-ratio: 100 / 60; background: #e2e0ea center / cover no-repeat; }
.chfd-card__img--empty { background: linear-gradient(135deg, #e2e0ea, #f1f0f8); }
.chfd-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; flex: 1 1 auto; }
.chfd-card__eyebrow { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--chfd-eyebrow); }
.chfd-card__title { font-family: var(--h4_typography-font-family, var(--h2_typography-font-family, inherit)); font-size: var(--h4_typography-font-size, 22px); line-height: 1.25; color: var(--chfd-text); }
.chfd-card__text { font-size: 15px; line-height: 1.5; }
.chfd-card__link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--chfd-accent); }
.chfd-card__link::after { content: " \203A"; }

.chfd-note { padding: 16px 20px; border: 2px dashed rgba(43, 39, 98, 0.25); border-radius: 12px; }
.chfd--dark + .chfd-note, .chfd--dark .chfd-note { color: #fff; }

/* ---------- Avada Post Card templates (Camphill News Card / Event Card) ---------- */
.fusion-post-cards .chfd-pc__card { cursor: pointer; height: 100%; }
.fusion-post-cards .chfd-pc__card > .fusion-column-wrapper { height: 100%; display: flex; flex-direction: column; }
.fusion-post-cards .chfd-pc__card > .fusion-column-wrapper > div:last-child { margin-top: auto; }
.fusion-post-cards .chfd-pc__img img { width: 100%; aspect-ratio: 100 / 60; object-fit: cover; display: block; }
.fusion-post-cards .chfd-pc__img { margin: 0; }
.fusion-post-cards a.chfd-pc__title { color: inherit; text-decoration: none; }
.fusion-post-cards a.chfd-pc__title:hover { color: var(--awb-color4); }
.fusion-post-cards a.chfd-pc__more { font-weight: 700; color: var(--awb-color5); text-decoration: none; }
.fusion-post-cards a.chfd-pc__more:hover { color: var(--awb-color4); }
