.main-all-category {
    background-color: #072f25;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 30px 20px;
}

/* Category card */
.main-all-category a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Image wrapper */
.cat-img {
    height: 100px;               /* SAME height for all */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-img img {
    max-width: 100px;
    transition: transform 0.4s ease;
}

/* Title wrapper */
.cat-title {
    height: 30px;                /* SAME height for all */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text */
.cat-title p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover effects */
.main-all-category a:hover img {
    transform: scale(1.1);
}

.main-all-category a:hover .cat-title p {
    color: #ec9124;
}

/* Underline animation */
.cat-title p::after {
    content: '';
    width: 0;
    height: 2px;
    background: #ec9124;
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    transition: 0.3s;
}

.main-all-category a:hover .cat-title p::after {
    width: 100%;
}


/* ================================
   TABLET SCREENS
================================ */
@media (max-width: 991px) {
    .main-all-category {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        justify-items: center;
    }

    .main-all-category img {
        max-width: 80px;
    }

    .main-all-category p {
        font-size: 13px;
    }
}

/* ================================
   MOBILE SCREENS
================================ */
@media (max-width: 576px) {
    .main-all-category {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px 15px;
    }

    .main-all-category img {
        max-width: 70px;
    }

    .main-all-category p {
        font-size: 12px;
    }
}




