.after-h2-title h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    background-color: #fdcb00;
    margin: 5px auto 0px auto;
    border-radius: 10px;
}

.after-h3-title h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00244f;
    border-radius: 10px;
}

.ewc-widget-title {
    text-align: center;
    margin: 40px 0 40px 0;
}

.ewc-categories {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 20px;
    padding: 20px;
}

.ewc-categories li {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 0px !important
}

.ewc-categories li:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.ewc-categories a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.ewc-category-image {
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.ewc-category-image img {
    transition: transform 0.3s ease;
    padding: 15px;
    width: 158px;
    height: 200px !important;
    object-fit: contain;
}

.ewc-categories li:hover .ewc-category-image img {
    transform: scale(1.05);
}

.ewc-category-name {
    padding: 15px;
    text-align: center;
    background: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #333;
}

.ewc-category-name span {
    display: block;
}

/* Responsywność */
@media (max-width: 768px) {
    .ewc-categories li {
        flex: 0 1 calc(50% - 5px);
        min-width: 100px;
    }

    .ewc-categories {
        gap: 10px;
        padding: 5px !important;
        /* padding: 15px; */
    }
}

/* @media (max-width: 400px) {
    .ewc-categories li {
        flex: 0 1 100%;
        min-width: 100%;
    }

    .ewc-category-image {
        height: 150px;
    } 
}*/