/*
 * Social icons, program cards (Home + Programs page), program photos, feedback note.
 * Colours/fonts follow the site's Elementor Global Colors; fallbacks match blossomfuture.org.
 * Phone first (360px): 2 columns of cards, 44px touch targets.
 */
.bf-social, .bf-pcards, .bf-pgroup, .bf-photos, .bf-feedback__note {
	--bf-primary: var(--e-global-color-primary, #2660A4);
	--bf-text: var(--e-global-color-text, #2C3E50);
	--bf-muted: #5A6C7D;
	--bf-border: #EEF0F2;
	--bf-tint: #E8F0FA;
	--bf-warn: #FF6A3D;
	font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
}

/* ---------- Social icons ---------- */
.bf-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.bf-social li { margin: 0; padding: 0; list-style: none; }
.bf-social .bf-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; text-decoration: none;
	background: var(--bf-tint); color: var(--bf-primary);
	transition: background .2s, color .2s, transform .2s;
}
.bf-social .bf-social__link svg { width: 22px; height: 22px; display: block; }
.bf-social .bf-social__link:hover, .bf-social .bf-social__link:focus-visible { background: var(--bf-primary); color: #fff; transform: translateY(-2px); }
.bf-social .bf-social__link:focus-visible { outline: 2px solid var(--bf-primary); outline-offset: 2px; }
.bf-social--dark .bf-social__link { background: rgba(255, 255, 255, .12); color: #fff; }
.bf-social--dark .bf-social__link:hover, .bf-social--dark .bf-social__link:focus-visible { background: #fff; color: var(--bf-primary); }
.bf-social--dark .bf-social__link:focus-visible { outline-color: #fff; }

/* ---------- Feedback ---------- */
.bf-feedback__note { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--bf-muted); }

/* ---------- Program cards (Home) ---------- */
.bf-pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bf-pcards .bf-pcard {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 20px 12px; background: #fff; border: 1px solid var(--bf-border); border-radius: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06); color: var(--bf-text); text-decoration: none;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bf-pcards .bf-pcard:hover, .bf-pcards .bf-pcard:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(38, 96, 164, .14); border-color: var(--bf-primary); }
.bf-pcard__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 8px; background: var(--bf-tint); color: var(--bf-primary); margin-bottom: 4px; }
.bf-pcard__icon svg { width: 28px; height: 28px; }
.bf-pcard__title { font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--bf-text); }
.bf-pcard__text { font-size: 13px; line-height: 1.5; color: var(--bf-muted); }
.bf-pcard__badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #FFF1EC; color: #B8431F; font-size: 12px; font-weight: 600; line-height: 1.6; }
.bf-pcards .bf-pcard .bf-pcard__badge { position: absolute; top: 8px; right: 8px; }
:lang(my) .bf-pcard__title, .bf-pcard__title:lang(my) { line-height: 1.6; }
@media (min-width: 640px) { .bf-pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .bf-pcards .bf-pcard { padding: 28px 18px; } .bf-pcard__title { font-size: 16px; } .bf-pcard__text { font-size: 14px; } }
@media (min-width: 1025px) { .bf-pcards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; } }

/* ---------- Programs page: one section per area ---------- */
.bf-pgroup { margin: 0 0 40px; }
.bf-pgroup .bf-pgroup__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif; font-weight: 700; font-size: 24px; line-height: 1.3; color: var(--bf-text); }
.bf-pgroup__title svg { width: 28px; height: 28px; color: var(--bf-primary); flex: none; }
.bf-pgroup .bf-pgroup__intro { margin: 0 0 16px; color: var(--bf-muted); line-height: 1.6; font-size: 16px; }
.bf-pgroup__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bf-pcard--photo { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bf-border); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); color: var(--bf-text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.bf-pcard--photo:hover, .bf-pcard--photo:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(38, 96, 164, .14); }
.bf-pcard__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bf-tint); overflow: hidden; }
.bf-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-pcard__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--bf-primary); }
.bf-pcard__ph svg { width: 56px; height: 56px; opacity: .8; }
.bf-pcard--photo .bf-pcard__badge { position: absolute; top: 10px; left: 10px; }
.bf-pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.bf-pcard--photo .bf-pcard__title { font-size: 17px; }
.bf-pcard--photo .bf-pcard__text { font-size: 14px; }
.bf-pcard__more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--bf-primary); }
@media (min-width: 640px) { .bf-pgroup__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .bf-pgroup__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .bf-pgroup .bf-pgroup__title { font-size: 28px; } }

/* ---------- Photo gallery on a program page ---------- */
.bf-photos { margin: 0 0 24px; }
.bf-photos .bf-photos__title { margin: 0 0 12px; font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif; font-weight: 700; font-size: 24px; color: var(--bf-text); }
.bf-photos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.bf-photos__grid li { margin: 0; padding: 0; list-style: none; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bf-tint); }
.bf-photos__grid a { display: block; width: 100%; height: 100%; }
.bf-photos__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bf-photos__grid a:hover img, .bf-photos__grid a:focus-visible img { transform: scale(1.04); }
@media (min-width: 640px) { .bf-photos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }

/* "Coming soon" status in the sidebar rows */
.bf-status--coming_soon { background: #FFF1EC; color: #B8431F; }

@media (prefers-reduced-motion: reduce) {
	.bf-social .bf-social__link, .bf-pcards .bf-pcard, .bf-pcard--photo, .bf-photos__grid img { transition: none; transform: none !important; }
}

/* Programs page: the Elementor box around the live list has no side padding on narrow screens */
.bf-pgroup { padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .bf-pgroup { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1280px) { .bf-pgroup { padding-left: 0; padding-right: 0; } }

/* Footer: a long e-mail address must wrap inside its narrow column instead of widening the page (1.17.4) */
[data-elementor-type="footer"] .elementor-icon-list-text { min-width: 0; overflow-wrap: anywhere; }
