
/* Main Content Styles */
main {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-container {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Reduced gap to fit 4 items better */
    flex-wrap: wrap; /* Allow wrapping if needed */
}

.category {
    flex: 1;
    min-width: 250px; /* Set minimum width to ensure proper sizing */
    transition: transform 0.3s ease;
}

.category-image {
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 10px;
    position: relative; /* For absolute positioning of text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

/* Add hover effect for the image overlay */
.category-image:hover img {
    opacity: 0.6;
}

.category h2 {
    font-family: 'Raleway', serif;
    font-size: 22px;
    position: absolute;
    color: #fff;
    margin: 0;
    padding: 12px;
    text-align: center;
    z-index: 5; /* Ensure text appears above the image */
}

/* Responsive Main Content Styles */
@media (max-width: 768px) {
    body {
        padding-top: 160px; /* Adjust for mobile header height which is taller */
    }
    
    .category-container {
        flex-direction: column;
        gap: 0; /* Remove gap between categories in mobile view */
    }
    
    .category {
        margin-bottom: 0; /* Remove bottom margin in mobile view */
    }
    
    .category-image {
        margin-bottom: 0; /* Remove bottom margin in mobile view */
    }
}

/* Active Navigation Link */
.active {
    font-weight: bold;
    border-bottom: 1px solid #333;
}

/* Mobile dropdown menu overrides */
@media (max-width: 768px) {
    /* Ensure dropdown is visible and properly styled */
    [data-radix-popper-content-wrapper] {
        z-index: 1001 !important; /* Ensure dropdown appears above other content */
    }
}
