/* Widget Title and Description */
.elementor-widget-custom-title-description {
    text-align: center;
    margin-bottom: 30px;
}

.elementor-widget-custom-title-description .widget-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
}

.elementor-widget-custom-title-description .widget-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Categories Wrapper */
.elementor-categories-custom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Single Category Card */
.elementor-category-custom-custom {
    flex: 1 1 calc(25% - 20px); /* Four categories per row */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-category-custom-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Category Image */
.elementor-category-custom-custom .category-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Category Info */
.elementor-category-custom-custom .category-info {
    padding: 15px;
    background-color: #f9f9f9;
}

.elementor-category-custom-custom .category-info .category-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.elementor-category-custom-custom .category-info .category-title:hover {
    color: #0073e6; /* Link hover color */
}

/* Responsive Design */
@media (max-width: 768px) {
    .elementor-category-custom-custom {
        flex: 1 1 calc(50% - 20px); /* Two categories per row on tablets */
    }
}

@media (max-width: 480px) {
    .elementor-category-custom-custom {
        flex: 1 1 100%; /* One category per row on mobile */
    }
}