.child-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 -10px;
}

.child-category {
    flex: 1 1 calc(25% - 20px); /* 4 columns on desktop */
    box-sizing: border-box;
    background: #ffffff; /* Make background white */
    padding: 10px;
    border: none; /* Remove border */
    border-radius: 10px;
    text-align: left; /* Align content to the left */
    margin: 10px;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.child-category .category-image {
    width: 100%;
    height: 150px; /* Fixed height for consistency */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.child-category h3 {
    margin: 10px 0 0;
    font-size: 1.2em;
    text-align: left; /* Align the title to the left */
}

.child-category a {
    text-decoration: none;
    color: #333;
}

.child-category:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.0);
}

@media (max-width: 767px) {
    .child-category {
        flex: 1 1 100%; /* 1 column on mobile */
    }
}