
.category-card {
    position: relative;
    background: white;
    border: 1px solid var(--diver);
    border-radius: 20px;
    height: 400px;
    padding: 40px;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 314px;
    cursor: pointer;
}.category-card.active::before, .category-card:hover::before {
    transform: translate(100%, -100%);
}
.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}.category-card.active .category-card-image, .category-card:hover .category-card-image {
    opacity: 1;
}.category-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ece8df;
    transition: all 0.4s ease-in-out;
}

.category-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}.category-card-image .yc-lazy-media {
    max-width: 100%;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}.category-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 40%;
}.category-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    z-index: 2;
}.category-card.active .category-card-body .category-card-icon, .category-card:hover .category-card-body .category-card-icon {
    filter: brightness(0) invert(1);
}.category-card-content p {
    border-top: 1px solid #ebebeb;
    padding-top: 20px;
    margin: 20px 0 0;
    transition: all 0.4s ease-in-out;
    font-size: 19px;
    color: var(--secondarytext);
}
.category-card-content a {
    transition: all 0.4s ease-in-out;
    font-size: 22px;
    font-weight: 600;
}
.category-card.active .category-card-content a, .category-card:hover .category-card-content a {
    color: white;
}
.category-card.active .category-card-content p, .category-card:hover .category-card-content p {
    color: white;
    border-color: #aea9a9;
}.category-card-btn {
    margin-top: 40px;
    position: relative;
    width: 50px;
    height: 50px;
    border: 1px solid #ebebeb;
    border-radius: 50%;
    color: var(--secondarytext);
    display: flex;
    justify-content: center;
    font-size: 21px;
    align-items: center;
    transition: all 0.4s ease-in-out;
}

.category-card.active .category-card-btn, .category-card:hover .category-card-btn {
    color: white;
    border: 0;
}

.category-card-btn i {
    position: relative;
}.category-card-btn:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    background: var(--backcolor);
    background-size: 200% auto;
    border-radius: 50%;
    transition: all 0.4s ease-in-out;
}.category-card.active .category-card-btn::before, .category-card:hover .category-card-btn::before {
    transform: scale(1);
}

@media (max-width: 767px) {
    .category-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 340px;
        padding: 26px;
    }

    .category-card-content a {
        font-size: 20px;
    }

    .category-card-content p {
        padding-top: 14px;
        margin-top: 14px;
        font-size: 16px;
    }

    .category-card-btn {
        width: 46px;
        height: 46px;
        margin-top: 20px;
    }
}
