/* Category Button Module Styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.category-item {
    background: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* 16:9 aspect ratio for horizontal images */
    /*aspect-ratio: 16/9;
    /*max-height: 340px; /* Increased to accommodate description text */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-image {
    width: 100%;
    /* For 16:9 images */
    flex: 4;
    overflow: hidden;
    display: block;
    min-height: 150px; /* Slightly reduced to give more space to content */
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    display: block;
}

.category-item:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 12px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: auto;
    min-height: 50px; /* Reduced height since we only have the name now */
}

.category-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-name {
    color: var(--text-dark);
    font-size: var(--font-size-h4);
    font-weight: 600;
    transition: color var(--transition-normal);
    margin: 0 auto;
    line-height: 1.4;
    max-width: 95%;
}

/* Category description removed as requested */
/* .category-description {
    color: #777;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.85;
    transition: opacity var(--transition-normal);
} */

/* .category-item:hover .category-description {
    opacity: 1;
} */

.category-item:hover .category-name {
    color: var(--primary-color);
}

/* Removed button styles as they are no longer needed */

/* Animation for items */
.animated {
    opacity: 0;
    transform: translateY(30px);
}

.animated.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Additional styling for hover effects */
.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: #f8f9fa;
}

.category-item:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.category-item:hover:after {
    background: rgba(0, 0, 0, 0.05);
}

.category-item:hover .category-name {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .category-item {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .category-content {
        padding: 12px 10px;
    }
    
    .category-name {
        font-size: 18px;
    }
    
    .category-description {
        font-size: 12px;
        max-width: 90%;
        margin-top: 2px;
    }
    
    .btn-text {
        font-size: 14px;
    }
}
