/* Karim Academy V31 — feature cards end after their own content.
   Fix the equal-height CSS Grid stretch that created long empty white bottoms. */
.public-design .w-grid.w-icongrid,
.public-design .w-icongrid,
.public-design .d-features .d-entry-grid {
  align-items: start !important;
  align-content: start !important;
}

.public-design .w-icongrid > article,
.public-design .d-features .d-entry-grid > .d-entry,
.public-design .d-features .d-entry.kf-card-has-media {
  align-self: start !important;
  height: fit-content !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Maintain the full-size image/GIF header and the separate title + description. */
.public-design .w-icongrid > article.kf-card-has-media,
.public-design .d-features .d-entry.kf-card-has-media {
  justify-content: flex-start !important;
}

/* No extra blank padding below the final line of text. */
.public-design .w-icongrid > article.kf-card-has-media > p:last-child,
.public-design .d-features .d-entry.kf-card-has-media > p:last-child {
  margin-bottom: 20px !important;
}

@media (max-width: 760px) {
  .public-design .w-icongrid > article.kf-card-has-media > p:last-child,
  .public-design .d-features .d-entry.kf-card-has-media > p:last-child {
    margin-bottom: 18px !important;
  }
}
