/* Grid/columns come from card-layouts.css (every page using .module-cards also adds a
   cards-type-* and cards-cols-* class to the wrapper, e.g. cards-type-tile cards-cols-3); this
   file only owns gap and the card's own look.

   margin-top: 55px is the sitewide gap from a section-heading to whatever follows it
   (components/narrow-content.css, lifecycle-stages.css, hero.css, faq.css, insight-cards.css,
   and article-detail.css all already carry this same value on their own wrapper). This file
   never had it, which is why every module-cards section sat flush against its own heading with
   no gap at all — found by comparing real rendered section heights against the prototype's. */
.module-cards {
    gap: 24px;
    margin-top: 55px;
}

.module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background-color: rgba(var(--white), 1);
    border: 1px solid rgba(var(--terra-green), 0.15);
    border-radius: 4px;
}

.module-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: rgba(var(--dark-green), 1);
    background-color: rgba(var(--dark-green), 0.1);
    border-radius: 4px;
}

.module-card .badge-beta {
    position: absolute;
    top: 28px;
    right: 28px;
    padding: 4px 8px;
    font-family: var(--font-eyebrow);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(var(--charcoal), 1);
    background-color: rgba(var(--light-gold), 1);
    border-radius: 4px;
}

.module-card .title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: rgba(var(--dark-green), 1);
}

.module-card .description {
    margin: 8px 0 0;
    padding-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(var(--charcoal), 1);
}

/* margin-top: auto (flex column) pushes the thumbnail and "Learn more" link to the bottom, so
   they line up across a row even when a card's description runs shorter. */
.module-card .thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0 0;
    padding: 16px;
    min-height: 72px;
    font-style: italic;
    font-size: 13px;
    text-align: center;
    color: rgba(var(--warm-gray), 1);
    background-color: rgba(var(--charcoal), 0.06);
    border-radius: 4px;
}

.module-card .learn-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(var(--terra-green), 1);
    text-decoration: none;
}

.module-card .learn-more:hover,
.module-card .learn-more:focus {
    text-decoration: underline;
}

/* sm */
@media (max-width: 575.98px) {
    .module-card .thumbnail {
        display: none;
    }
}
