.mhc-category-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

/*
 * Divi layouts sometimes keep a shortcode in the first column of a legacy
 * three-column row. Let the shortcode own the columns and use the full row.
 */
.et_pb_row:has(.mhc-category-grid) {
    display: block !important;
}

.et_pb_row:has(.mhc-category-grid) > .et_pb_column:has(.mhc-category-grid) {
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.et_pb_row:has(.mhc-category-grid) > .et_pb_column:not(:has(.mhc-category-grid)) {
    display: none !important;
}

.mhc-category-grid--columns-1 {
    grid-template-columns: minmax(0, 1fr);
}

.mhc-category-grid--columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhc-category-grid--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mhc-category-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(35, 38, 58, 0.1);
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.mhc-category-card:hover,
.mhc-category-card:focus-within {
    box-shadow: 0 16px 42px rgba(35, 38, 58, 0.16);
    transform: translateY(-3px);
}

.mominly-help-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 64px 24px;
}

.mominly-help-page__header {
    margin-bottom: 56px;
    text-align: center;
}

.mominly-help-page__header h1 {
    margin-bottom: 24px;
}

.mominly-help-page__search {
    margin: 0 auto;
    max-width: 680px;
    position: relative;
}

.mominly-help-page__search .et_pb_s {
    border: 1px solid #d8d8dc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 17px;
    padding: 16px 18px;
    width: 100%;
}

.mominly-help-page > h2 {
    margin-bottom: 24px;
}

.mhc-category-card__link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.mhc-category-card__link:hover {
    color: inherit;
}

.mhc-category-card__link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -3px;
}

.mhc-category-card__image {
    background: #f5f5f7;
    display: block;
    overflow: hidden;
}

.mhc-category-card__image img {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.mhc-category-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.mhc-category-card__title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.mhc-category-card__description {
    color: #666;
    display: block;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 10px;
}

.mhc-category-card__description p {
    margin: 0;
}

.mhc-category-card__count {
    color: #777;
    display: block;
    font-size: 13px;
    margin-top: auto;
    padding-top: 16px;
}

@media (max-width: 980px) {
    .mhc-category-grid,
    .mhc-category-grid--columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mhc-category-grid,
    .mhc-category-grid--columns-2,
    .mhc-category-grid--columns-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}
