.elementor-2968 .elementor-element.elementor-element-5221efd{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:10px;--padding-bottom:10px;--padding-left:0px;--padding-right:0px;}.elementor-2968 .elementor-element.elementor-element-5221efd:not(.elementor-motion-effects-element-type-background), .elementor-2968 .elementor-element.elementor-element-5221efd > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}@media(max-width:767px){.elementor-2968 .elementor-element.elementor-element-5221efd{--padding-top:30px;--padding-bottom:30px;--padding-left:10px;--padding-right:10px;}}/* Start custom CSS for shortcode, class: .elementor-element-79e7afc *//* =====================================
   EBOOK GRID — MATCH HARD BOOK LISTING
   Only grid and product card layout
===================================== */

.mrig-ebook-page .mrig-hb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

.mrig-ebook-page .mrig-hb-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mrig-ebook-page .mrig-hb-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 170px;
    flex: 0 0 170px;
    padding: 10px;
    overflow: hidden;
}

.mrig-ebook-page .mrig-hb-cover img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center;
}

.mrig-ebook-page .mrig-hb-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 8px 9px 10px;
}

.mrig-ebook-page .mrig-hb-card h3 {
    display: -webkit-box;
    min-height: 36px;
    margin: 0 0 4px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.5;
}

.mrig-ebook-page .mrig-hb-price {
    min-height: 24px;
    margin-bottom: 5px;
}

.mrig-ebook-page .mrig-hb-stock {
    min-height: 20px;
    margin-bottom: 9px;
}

.mrig-ebook-page .mrig-hb-view {
    width: 100%;
    margin-top: auto;
}

/* Tablet: 3 columns */
@media (max-width: 900px) {
    .mrig-ebook-page .mrig-hb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .mrig-ebook-page .mrig-hb-cover {
        height: 175px;
        flex-basis: 175px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
    .mrig-ebook-page .mrig-hb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .mrig-ebook-page .mrig-hb-cover {
        height: 150px;
        flex-basis: 150px;
        padding: 8px 7px;
    }

    .mrig-ebook-page .mrig-hb-card-content {
        padding: 7px;
    }

    .mrig-ebook-page .mrig-hb-card h3 {
        min-height: 33px;
        font-size: 11px;
    }

    .mrig-ebook-page .mrig-hb-price {
        min-height: 24px;
        font-size: 14px;
    }

    .mrig-ebook-page .mrig-hb-stock {
        min-height: 20px;
        font-size: 9px;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .mrig-ebook-page .mrig-hb-cover {
        height: 130px;
        flex-basis: 130px;
    }
}/* End custom CSS */