.mm-cards-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    grid-template-columns: repeat(2, 1fr);
}
.mm-book {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    /* background: linear-gradient(145deg, #faf8f3 0%, #f5f2e8 100%); */
    /* background: #193267; */
    border-radius: 0 15px 15px 0;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1), 5px 5px 20px rgba(0, 0, 0, 0.2);
    transform: preserve-3d;
    perspective: 2000px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.mm-book::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 50px 50px 0;
    border-color: #e8e6dc #c3cfe2;
    border-radius: 0 15px 0 0;
    box-shadow: -3px 3px 6px rgba(0,0,0,0.2);
    z-index: 2;
}
.mm-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px 15px 15px 15px;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 15px;
    /* background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); */
    background: #193267;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}
.mm-book:hover .mm-cover {
    transform: rotateY(-90deg);
}
.mm-cover-title {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Archivo Black', sans-serif;
    background: linear-gradient(145deg, #DAA520 0%, #FFD700 50%, #FFF8DC 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 20px;
}
.mm-cover-subtitle {
    font-size:16px !important;
    color: white !important;
    /* font-family: 'Inter', sans-serif; */
    line-height: 1.1 !important;
    margin-bottom: 5px !important;
}
.mm-title-divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(218, 165, 32, 0.5) !important;
    margin-bottom: 5px;
}
.mm-title-divider:last-of-type {
    margin-bottom: 30px;
}
.mm-title-divider {
    width: 100%;
    margin-bottom: 8px;
    height: 1px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}
.mm-cover-author {
    font-size: 10px !important;
    color: rgba(218, 165, 32, 0.85);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 2px solid grey;
    padding-top: 4px;
}
.mm-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: linear-gradient(145deg, #FFFFFF 0%, #FFD700 100%);
    border-radius: 3px;
    font-size: 9px;
    color: #0f2027;
    font-weight: bold;
    text-transform: uppercase;
    /* letter-spacing: 1px; */
}
.mm-inner-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mm-inner-content h3 {
    font-size: 11px !important;
    color: #0f2027 !important;
    margin-bottom: 6px !important;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 1.5px solid #0f2027;
    padding-bottom: 6px;
}
.mm-inner-content p {
    flex: 1;
    overflow: hidden;
    font-size: 10px !important;
    color: #3c3c3c;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
    font-family: 'Inter', sans-serif;
}
.mm-inner-content .fas.fa-eye {
    font-size: 10px
}
.mm-inner-content .fas.fa-eye:before {
    margin-right: 5px
}
.mm-btn {
    padding: 2px 8px;
    background: #0f2027;
    color: #DAA520 !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    border: 1.5px solid #DAA520;
    align-self: flex-end;
    margin-top: auto;
}
/* Color variations for different mm-books */
/* .mm-book:nth-child(1) .mm-cover {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}
.mm-book:nth-child(1) .mm-cover-title {
    background: linear-gradient(145deg, #DAA520 0%, #FFD700 50%, #FFF8DC 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mm-book:nth-child(1) .mm-category-badge {
    background: linear-gradient(145deg, #DAA520 0%, #FFD700 100%);
}

.mm-book:nth-child(2) .mm-cover {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.mm-book:nth-child(2) .mm-cover-title {
    background: linear-gradient(145deg, #CD7F32 0%, #E8A87C 50%, #F5DEB3 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mm-book:nth-child(2) .mm-cover-subtitle,
.mm-book:nth-child(2) .mm-cover-author,
.mm-book:nth-child(2) .mm-cover-author span {
    color: rgba(205, 127, 50, 0.9);
}
.mm-book:nth-child(2) .mm-title-divider {
    border-top: 1px solid rgba(205, 127, 50, 0.5);
}
.mm-book:nth-child(2) .mm-category-badge {
    background: linear-gradient(145deg, #CD7F32 0%, #E8A87C 100%);
}

.mm-book:nth-child(3) .mm-cover {
    background: linear-gradient(135deg, #0a1828 0%, #1e3a5f 50%, #2a5298 100%);
}
.mm-book:nth-child(3) .mm-cover-title {
    background: linear-gradient(145deg, #F4A460 0%, #FFB84D 50%, #FFE4B5 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mm-book:nth-child(3) .mm-cover-subtitle,
.mm-book:nth-child(3) .mm-cover-author,
.mm-book:nth-child(3) .mm-cover-author span {
    color: rgba(244, 164, 96, 0.9);
}
.mm-book:nth-child(3) .mm-title-divider {
    border-top: 1px solid rgba(244, 164, 96, 0.5);
}
.mm-book:nth-child(3) .mm-category-badge {
    background: linear-gradient(145deg, #F4A460 0%, #FFB84D 100%);
}

.mm-book:nth-child(4) .mm-cover {
    background: linear-gradient(135deg, #141E30 0%, #243B55 50%, #1e5a7d 100%);
}
.mm-book:nth-child(4) .mm-cover-title {
    background: linear-gradient(145deg, #B8860B 0%, #DAA520 50%, #F0E68C 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mm-book:nth-child(4) .mm-cover-subtitle,
.mm-book:nth-child(4) .mm-cover-author,
.mm-book:nth-child(4) .mm-cover-author span {
    color: rgba(184, 134, 11, 0.9);
}
.mm-book:nth-child(4) .mm-title-divider {
    border-top: 1px solid rgba(184, 134, 11, 0.5);
}
.mm-book:nth-child(4) .mm-category-badge {
    background: linear-gradient(145deg, #B8860B 0%, #DAA520 100%);
}

.mm-book:nth-child(5) .mm-cover {
    background: linear-gradient(135deg, #0c1821 0%, #1b2a41 50%, #324a5f 100%);
}
.mm-book:nth-child(5) .mm-cover-title {
    background: linear-gradient(145deg, #D4AF37 0%, #F4E041 50%, #FFF5CC 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mm-book:nth-child(5) .mm-cover-subtitle,
.mm-book:nth-child(5) .mm-cover-author,
.mm-book:nth-child(5) .mm-cover-author span {
    color: rgba(212, 175, 55, 0.9);
}
.mm-book:nth-child(5) .mm-title-divider {
    border-top: 1px solid rgba(212, 175, 55, 0.5);
}
.mm-book:nth-child(5) .mm-category-badge {
    background: linear-gradient(145deg, #D4AF37 0%, #F4E041 100%);
}

.mm-book:nth-child(6) .mm-cover {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #2d4263 100%);
}
.mm-book:nth-child(6) .mm-cover-title {
    background: linear-gradient(145deg, #C5A572 0%, #E5C57F 50%, #F5E6D3 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mm-book:nth-child(6) .mm-cover-subtitle,
.mm-book:nth-child(6) .mm-cover-author,
.mm-book:nth-child(6) .mm-cover-author span {
    color: rgba(197, 165, 114, 0.9);
}
.mm-book:nth-child(6) .mm-title-divider {
    border-top: 1px solid rgba(197, 165, 114, 0.5);
}
.mm-book:nth-child(6) .mm-category-badge {
    background: linear-gradient(145deg, #C5A572 0%, #E5C57F 100%);
}

.mm-book:nth-child(7) .mm-cover {
    background: linear-gradient(135deg, #121b28 0%, #1f3a5f 50%, #2c5f7f 100%);
}
.mm-book:nth-child(7) .mm-cover-title {
    background: linear-gradient(145deg, #CFB53B 0%, #EFCE4A 50%, #FFFACD 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mm-book:nth-child(7) .mm-cover-subtitle,
.mm-book:nth-child(7) .mm-cover-author,
.mm-book:nth-child(7) .mm-cover-author span {
    color: rgba(207, 181, 59, 0.9);
}
.mm-book:nth-child(7) .mm-title-divider {
    border-top: 1px solid rgba(207, 181, 59, 0.5);
}
.mm-book:nth-child(7) .mm-category-badge {
    background: linear-gradient(145deg, #CFB53B 0%, #EFCE4A 100%);
} */

/* Responsive Design - Mobile First */
/* 481-540px: 3 cards */
@media (min-width: 481px) and (max-width: 540px) {
    .mm-book {padding: 10px}
    .mm-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .mm-cover-title {font-size: 11px;margin-bottom: 20px;}
    .mm-cover-subtitle {font-size:11px;margin-bottom: 5px;}
    .mm-title-divider {margin-bottom: 10px;}
    .mm-title-divider:last-of-type {margin-bottom: 20px;}
}

/* 541-740px: 4 cards */
@media (min-width: 541px) and (max-width: 740px) {
    .mm-book {padding: 10px}
    .mm-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .mm-cover-title {font-size: 10px;margin-bottom: 20px;}
    .mm-cover-subtitle {font-size:9px;margin-bottom: 5px;}
    .mm-title-divider {margin-bottom: 5px;}
    .mm-title-divider:last-of-type {margin-bottom: 10px;}    
}

/* 741-900px: 4 cards */
@media (min-width: 741px) and (max-width: 900px) {
    .mm-book {padding: 15px}
    .mm-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .mm-cover-title {font-size: 12px;margin-bottom: 20px;}
    .mm-cover-subtitle {font-size:12px;margin-bottom: 5px;}
    .mm-title-divider {margin-bottom: 5px;}
    .mm-title-divider:last-of-type {margin-bottom: 30px;}    
}

/* 901-1200px: 5 cards */
@media (min-width: 901px) and (max-width: 1200px) {
    .mm-book {padding: 20px}
    .mm-cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 1201px and above: 6 cards */
@media (min-width: 1201px) {
    .mm-book {padding: 20px}
    .mm-cards-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}