/* Feature Cards (orbisk/feature-cards + orbisk/feature-cards-item)
   Row of centered icon / h3 / paragraph cards. All cards share one row at
   desktop (equal widths, any count), 2-up on tablet, stacked on mobile. */

/* Divi's .et_flex_module adds a row-gap between the module's own direct
   children — zero it so it can't add space around the grid. */
.orbisk_feature_cards.et_flex_module {
    row-gap: 0 !important;
}

.orbisk_feature_cards .orbisk-fc-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.orbisk_feature_cards_item {
    /* The grid gap handles spacing — Divi's default module margin would
       only add uneven extra space. */
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.orbisk-fc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 40px 24px;
    border-radius: 16px;
    background-color: #ECF4EC;
    text-align: center;
}

.orbisk-fc-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 32px;
}

/* Baseline fallback, deliberately without !important: Divi only prints the
   Icon Sizing field's CSS (Design tab) once an editor actually touches it on
   a given card — its `defaultPrintedStyle` in module.json never renders on
   its own. Divi's generated per-instance selector is more specific and wins
   once the field is set. Keep this rule when touching the icon size field. */
.orbisk-fc-icon {
    display: block;
    width: auto;
    max-width: 126px;
    height: 126px;
    object-fit: contain;
}

.orbisk_feature_cards_item .orbisk-fc-heading {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    color: #13382A;
    margin: 0 0 12px;
    padding: 0;
}

.orbisk_feature_cards_item .orbisk-fc-body,
.orbisk_feature_cards_item .orbisk-fc-body p {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 140%;
    color: #666666;
    margin: 0;
    padding: 0;
}

.orbisk_feature_cards_item .orbisk-fc-body p + p {
    margin-top: 8px;
}

/* Tablet: 2-up. */
@media (min-width: 768px) and (max-width: 1023px) {
    .orbisk_feature_cards .orbisk-fc-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: stacked. */
@media (max-width: 767px) {
    .orbisk_feature_cards .orbisk-fc-grid {
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 1fr);
    }

    .orbisk-fc-card {
        padding: 32px 24px;
    }
}
