.card-grid {
    overflow-x: auto;
    border: 10px solid white !important;
}
@media (max-width: 575.98px) {
    .cat-card {
        margin: 5px;
        flex: 0 0 auto;
        max-width: 190px !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .cat-card {
        margin: 5px;
        flex: 0 0 auto;
        /**/
        max-width: 190px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cat-card {
        margin: 10px;
        flex: 0 0 auto;
        
        max-width: 190px !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .cat-card {
        margin: 10px;
        flex: 0 0 auto;
        
        max-width: 190px !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .cat-card {
        margin: 10px;
        flex: 0 0 auto;
        
        max-width: 190px !important;
    }
}

/* XXL devices (very large screens, 1400px and up) */
@media (min-width: 1400px) and (max-width: 1800.98px) {
    .cat-card {
        margin: 10px;
        flex: 0 0 auto;
        
        max-width: 190px !important;
    }
}

@media (min-width: 1801px) {
    .cat-card {
        margin: 10px;
        flex: 0 0 auto;        
        max-width: 200px !important;
    }
}
.cat-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.cat-card img {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cat-card:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.cat-card .card-body {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.cat-card:hover .card-body {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, #fff 100%);
}

.cat-card .lead strong {
    transition: color 0.3s ease;
}

.cat-card:hover .lead strong {
    color: #d62828; /* deep red accent */
}

.cat-card .badge {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cat-card:hover .badge {
    transform: scale(1.05);
    background-color: #ffb703; /* richer gold tone */
}