<style>
/* ==== Categories PAGE STYLES ==== */
body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}
.heading-h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    color: #222; /* slightly softer */
    margin: 40px 0 15px;
}
.heading-h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    text-align: center;
    color: #666; /* lighter, secondary */
    margin-bottom: 40px;
}

.categories-container {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.category-card {
    background: #fff;
    border: 2px solid #cecece;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 5px 10px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
     border-radius: 10px;
}

/* --- FIX for the underline and color --- */
.categories-container a {
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-name {
    padding: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #333;
    background: none;  /* remove grey box */
}
.category-name h3 {
     font-family: 'Montserrat', sans-serif;
      font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    color: #000;
}
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* --- End of Fix --- */

@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 0 30px; /* instead of 40px */
    }

    .category-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}
</style>