@keyframes runUp {
    from {
        opacity: 0;
        transform: translateY(50%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#company .btn-gray {
    color: var(--dark-color) !important;
}

#company .pagination .page-item .page-link {
    color: var(--primary-color) !important;
}

#company .pagination .page-item.active .page-link {
    color: var(--white-color) !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

#company .card {
    border-radius: 8px;
    box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, .08);
    overflow: hidden;
    border: 1px solid #f4f4f4;
    background-color: var(--white-color);
    transition: 0.4s;
}

#company .company-item:hover {
    cursor: pointer;
    box-shadow: 0px 0px 8px 4px rgba(0, 0, 0, .1) !important;
}

#company .company-item .avatar-container {
    width: 100%;
    overflow: hidden;
}

#company .company-item .avatar-content {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 0;
    padding-top: 100%;
    position: relative;
}

#company .company-item .avatar-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#company .category-wrapper {
    position: relative;
}

#company .category-wrapper .category-list {
    margin-top: 18px;
    position: absolute;
    right: 0;
    z-index: 999;
    display: none;
    animation: fadeIn .15s linear;
}

#company .category-wrapper.active .category-list {
    display: block;
}

#company .category-wrapper .category-list::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 8px;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 16px solid #fff;
    z-index: 99;
}

.category-list .category-item a {
    border-radius: 8px;
}

.category-list .category-item:hover a {
    background: #F2F3F5;
}

#company .category-wrapper #icon-arrow {
    transition: transform 0.2s ease;
}

#company .category-wrapper.active #icon-arrow {
    transform: rotate(90deg);
}

.company-list .company-item .company-description {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    padding: 12px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-item .company-description .description-content {
    font-size: 12px;
    text-align: center;
    color: var(--white-color);
    background-color: rgba(0, 0, 0, .5);
    border-radius: 4px;
    max-height: 100%;
    display: none;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: runUp .6s ease-in-out;
}

#company .company-item:hover .company-description .description-content {
    display: -webkit-box;
}

#company .company-item #img-account {
    transform: scale(1);
    transition-duration: .5s;
}

#company .company-item:hover #img-account {
    transform: scale(1.1);
}

#company .category-list .category-item.active span {
    border-bottom: 2px solid #3B82F6;
}

#company .company-item .company-name {
    min-height: 48px;
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#company .form-search {
    width: 400px;
}

#company .form-search .form-control {
    font-size: 14px;
    padding: 8px 12px;
}

/* css for mobile screen */
@media screen and (max-width: 768px) {
    #company .search-filter-wrapper {
        flex-direction: column-reverse;
        align-items: end;
    }

    #company .form-search {
        width: 100%;
        margin-top: 16px !important;
    }

    #company .category-wrapper .category-list {
        margin-top: -41px;
    }
}
