/* Categories Section */
.categories {
    text-align: center;
    margin-top: 70px;
}

.categories h2 {
    font-size: 30px;
    margin-bottom: 20px;
    background-color: #086060;
    color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.category-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card img {
    max-width: 100%;
    border-radius: 8px;
    height: 190px;
}


.category-card h4 {
    font-size: 28px;
    margin-top: 6px;
    color: rgb(17, 17, 17);
    text-align: center;
    font-weight: bold;
    margin-bottom: 2px;
}



@media screen and (max-width: 1024px) {
    .category-grid {
        display: grid
    ;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        justify-items: center;
    }
}


@media screen and (max-width: 480px) {
    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Always have 2 columns */
        gap: 40px; /* Space between the cards */
        justify-items: center; /* Center cards horizontally */
    }
    .categories {
        margin-top: 77px;
    }
}