/* =====================================================
   HOMEPAGE SPECIFIC STYLES
   Target homepage to show only one row per taxonomy section
   ===================================================== */

/* === HOMEPAGE CARD LISTING === */
body.home .mtc-card-listing,
body.page-id-2 .mtc-card-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    justify-content: start;
    grid-template-rows: 1fr;
    gap: 25px;
    overflow: hidden;
    max-height: 550px;
}

/* === RESPONSIVE ADJUSTMENTS FOR HOMEPAGE === */

@media (max-width: 960px) {
    body.home .mtc-card-listing,
    body.page-id-2 .mtc-card-listing {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    body.home .mtc-card-listing,
    body.page-id-2 .mtc-card-listing {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    body.home .mtc-card-listing,
    body.page-id-2 .mtc-card-listing {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    body.home .mtc-card-listing,
    body.page-id-2 .mtc-card-listing {
        grid-template-columns: 1fr;
        max-height: 450px;
    }
}
