.cat-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.cat-grid-container a:nth-child(11) img,
.cat-grid-container a:nth-child(12) img {
    height: 100%;
}
.cat-card {
    position: relative;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: #f9f9f9;
}
.cat-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}
.cat-fg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.cat-fg img {
    object-fit: cover;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.cat-title {
    position: relative;
    z-index: 3;
    color: #222;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    max-width: 70%;
}

.cat-card:hover .cat-bg {
    transform: scale(1.1);
}
.cat-card:hover .cat-fg {
    transform: scale(1.1) translateX(-10px);
}

@media (max-width: 1100px) {
    .cat-grid-container {
        grid-template-columns: repeat(3, 1fr);
        padding: 0px;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .cat-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-title {
        max-width: 100%;
        font-size: 16px;
    }
}