/* [Programs] Regular Programs Grid widget styles.
   Scoped under .mnny-program-grid to prevent Elementor's default h2, h3 and
   p typography resets from overriding the program-card values in theme.css.
   All values are exact copies from the prototype (global.css). */

/* ── Section wrapper ───────────────────────────────────────── */
.mnny-program-grid > section {
    background: white;
}

/* ── Section header ────────────────────────────────────────── */
.mnny-program-grid .section-header {
    margin-bottom: var(--space-16);
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
}

.mnny-program-grid .section-header .label {
    display: block;
    margin-bottom: var(--space-3);
}

.mnny-program-grid .section-header h2 {
    margin-bottom: var(--space-4);
    /* Reset Elementor heading overrides */
    font-size: clamp(1.75rem, 3vw, var(--text-4xl));
    color: var(--color-text-primary);
}

.mnny-program-grid .section-header p {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    max-width: 56ch;
    margin-inline: auto;
}

/* ── Grid ──────────────────────────────────────────────────── */
.mnny-program-grid .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8);
}

/* ── Card ──────────────────────────────────────────────────── */
.mnny-program-grid .program-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--duration-slow) var(--ease-zen),
                box-shadow var(--duration-slow) var(--ease-zen);
    display: flex;
    flex-direction: column;
}

.mnny-program-grid .program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ── Card top ──────────────────────────────────────────────── */
.mnny-program-grid .program-card-top {
    background: var(--color-accent-light);
    padding: var(--space-8);
    text-align: center;
}

.mnny-program-grid .program-card-top .program-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
    line-height: 1;
}

.mnny-program-grid .program-card-top h3 {
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin: 0;
    /* Reset Elementor heading overrides */
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
}

/* ── Card body ─────────────────────────────────────────────── */
.mnny-program-grid .program-card-body {
    padding: var(--space-6) var(--space-8);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mnny-program-grid .program-card-body > p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
    line-height: var(--leading-relaxed);
}

/* ── Meta rows ─────────────────────────────────────────────── */
.mnny-program-grid .program-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.mnny-program-grid .program-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    /* Reset Elementor paragraph overrides */
    margin: 0;
}

.mnny-program-grid .program-meta-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ── CTA button ────────────────────────────────────────────── */
.mnny-program-grid .program-card-body .btn {
    margin-top: auto;
}

/* Strip Elementor widget container padding. */
.elementor-widget-mnny_program_grid > .elementor-widget-container {
    padding: 0 !important;
}
