/* Programs / ministry areas — front end AND editor canvas via enqueue_block_assets (see inc/programs.php). */

/* Grid — the archive Query Loop */
.mhm-programs .wp-block-post-template{align-items:stretch}
.mhm-programs .wp-block-post-template>li{display:flex}
.mhm-program-card:hover{box-shadow:0 6px 18px rgba(17,24,39,.09)}

.mhm-programs .wp-block-post-template>li>.mhm-program-card{width:100%}
/* Compiled block + shortcode grid (plinthworks/programs-grid, [mhm_programs]) — honours the Columns setting via --mhm-cols. */
.mhm-programs__grid{display:grid;grid-template-columns:repeat(var(--mhm-cols,2),minmax(0,1fr));gap:24px}
@media(max-width:760px){.mhm-programs__grid{grid-template-columns:minmax(0,1fr)}}
/*
 * stylelint no-descending-specificity: NOT reordered - doing so would
 * change rendering. Measured, not assumed.
 *
 * This rule is (0,1,0); stylelint wants it above
 *   .mhm-program-card:hover (L6, (0,2,0))
 *
 * Moving it up would jump it over these rules, which share a
 * declared property and are not outranked on specificity, so the
 * last-one-wins outcome would flip:
 *   L10 (0,1,0) [display, gap] .mhm-programs__grid
 */
/* stylelint-disable-next-line no-descending-specificity */
.mhm-program-card{display:flex;flex-direction:column;gap:12px;height:100%;padding:30px 28px;background:var(--pw-surface,#fff);border:var(--mhm-card-border-width,1px) solid var(--mhm-card-border-color,var(--wp--preset--color--base-3,#C8C8C8));border-radius:var(--mhm-card-radius,16px);transition:box-shadow .25s}
.mhm-program-card>*{margin:0}
.mhm-program-card__icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:var(--wp--preset--color--base-2,#F9F7F6);color:var(--wp--preset--color--surface-deep,#343877)}
.mhm-program-card__icon i,.mhm-program-card__icon svg{width:26px;height:26px}
.mhm-program-card__title,.mhm-program-card .wp-block-post-title{margin:0;font-size:1.3rem;line-height:1.2}
.mhm-program-card__title a,.mhm-program-card .wp-block-post-title a{color:inherit;text-decoration:none}
.mhm-program-card__title a:hover,.mhm-program-card .wp-block-post-title a:hover{color:var(--wp--preset--color--surface-deep,#343877)}
.mhm-program-card__summary{margin:0;color:var(--wp--preset--color--contrast-2,#6F6F6F);line-height:1.6}
.mhm-program-card__cta-area{margin-top:auto;display:flex}
.mhm-program-card__more{margin-top:auto;align-self:flex-start;font-size:.88rem;font-weight:600;color:var(--wp--preset--color--surface-deep,#343877);text-decoration:none}
.mhm-program-card__more:hover{text-decoration:underline}
.mhm-programs__empty{padding:48px;text-align:center;color:var(--wp--preset--color--contrast-2,#6F6F6F);background:var(--wp--preset--color--base-2,#F9F7F6);border-radius:16px}

/* Single program */
.mhm-program{max-width:860px;margin:0 auto;padding:clamp(32px,5vw,56px) clamp(20px,4vw,48px) clamp(48px,7vw,80px)}
.mhm-program__tagline{margin:0 0 26px;font-size:clamp(1.2rem,2.6vw,1.5rem);line-height:1.4;color:var(--wp--preset--color--contrast,#515266);font-weight:600}
.mhm-program__tagline:empty{display:none}
.mhm-program__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px;margin:0 0 30px;padding:24px 0;border-top:1px solid var(--wp--preset--color--base-3,#C8C8C8);border-bottom:1px solid var(--wp--preset--color--base-3,#C8C8C8)}
.mhm-program__stat{display:flex;flex-direction:column;gap:4px}
.mhm-program__stat-value{font-size:2rem;font-weight:800;line-height:1;color:var(--wp--preset--color--contrast,#515266)}
.mhm-program__stat-label{font-size:.85rem;color:var(--wp--preset--color--contrast-2,#6F6F6F)}
.mhm-program__story{color:var(--wp--preset--color--contrast-2,#6F6F6F);line-height:1.75;font-size:1.02rem}
.mhm-program__story p{margin:0 0 1.1em}
.mhm-program__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:30px}
.mhm-program__cta{display:inline-block;padding:14px 34px;border-radius:var(--mhm-button-radius,999px);border:1.5px solid transparent;background:var(--wp--preset--color--accent,#EFC940);color:var(--wp--preset--color--on-action,#333);font-weight:700;text-decoration:none;transition:filter .2s}
.mhm-program__cta:hover{filter:brightness(1.08);color:var(--wp--preset--color--on-action,#333)}
.mhm-program__cta--alt{background:transparent;color:var(--wp--preset--color--surface-deep,#343877);border-color:var(--wp--preset--color--surface-deep,#343877)}
.mhm-program__cta--alt:hover{background:var(--wp--preset--color--accent,#EFC940);color:var(--wp--preset--color--on-action,#333);filter:none}
