/*
 * Styles for the Woo Category Card module.
 *
 * The card is styled with relative positioning and a semi‑transparent
 * overlay to ensure that the heading text is legible against the
 * background image. Padding and border‑radius values can be
 * customized via Divi’s design controls if desired.
 */
/*
 * The wrapper div for the category card. This element receives the
 * background image and overlay. Flexbox is used to center the inner
 * link element. Do not set an explicit colour here so that the
 * module’s “Module text colour” design setting can cascade down.
 */
.dccm-category-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: inherit;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    padding: 30px;
}

.dccm-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/*
 * The anchor fills the entire card area. It positions its
 * children relative to the overlay and ensures text isn’t underlined.
 */
.dccm-category-card .dccm-category-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/*
 * The category title. It inherits colour from its parent (either from
 * the module wrapper or from an inline style set in PHP). The margin is
 * removed to aid centering.
 */
.dccm-category-card .dccm-category-title {
    margin: 0;
    font-size: 1.5em;
    line-height: 1.2;
    color: inherit;
}