.animated-categories-wrapper-3d9d8e0c {
    width: 100%;
}

.categories-row {
    display: grid;
    gap: 20px;
    /* Default to 6 columns, overridden by Elementor controls */
    grid-template-columns: repeat(6, 1fr);
}

.cat-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cat-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1; /* Square images */
    overflow: hidden;
}

.cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-item:hover .cat-image {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Default overlay */
    transition: background-color 0.3s ease;
    z-index: 1;
}

.cat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px;
    text-align: center;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.cat-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
}

.cat-item:hover .cat-title {
    transform: scale(1.05);
}

/* Base responsive defaults (can be overridden by Elementor responsive controls) */
@media (max-width: 1024px) {
    .categories-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .categories-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
