.staffs__categories {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    row-gap: 15px;
    &.mobile {
        display: none;
    }
}

.staffs__secton-title {
    margin-block-end:  30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.staffs__listing {
    margin-top: 20px;
    height: auto;
    &.loading {
        min-height: 320px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .loader {
        height: 60px;
        width: 60px;
        background-image: url('../../images/loader-icon.svg');
        background-size: 100% 100%;
        animation: spin 2.5s linear infinite;
        filter: brightness(0) saturate(100%) invert(48%) sepia(46%) saturate(7490%) hue-rotate(359deg) brightness(105%) contrast(99%);
    }
}

.staffs__cat {
    border-radius: 7px;
    background-color: var(--wp--preset--color--contrast);
    border: none;
    font-size: clamp(0.938rem, 0.447vw + 0.651rem, 1.188rem);
    font-weight: 700;
    padding: 15px 30px;
    transition: color .25s ease, background-color .25s ease-out;
    flex: 100% 0 0;
    &:hover {
        background-color: var(--wp--preset--color--accent-1);
        color: var(--wp--preset--color--accent-2);
        cursor: pointer;
    }
    &.active {
        background-color: var(--wp--preset--color--accent-1);
        color: var(--wp--preset--color--accent-2);
    }
}

.staffs__catmobile {
    border-radius: 7px;
    background-color: var(--wp--preset--color--contrast);
    border: none;
    font-size: clamp(0.938rem, 0.447vw + 0.651rem, 1.188rem);
    font-weight: 700;
    padding: 15px 30px;
    transition: color .25s ease, background-color .25s ease-out;
    flex: 100% 0 0;
    display: none;
    &:hover, &.active {
        background-color: var(--wp--preset--color--accent-1);
        color: var(--wp--preset--color--accent-2);
        cursor: pointer;
    }
}

.staffs__list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    row-gap: 24px;
}

.staffs__item {
    display: flex;
    flex-direction: column;
    flex: 100% 0 0;
    padding: 15px;
    border-radius: 15px;
    transition: background-color .25s ease-in;
    background-color: var(--wp--preset--color--accent-2);
    box-shadow: 0px 4px 80px rgba(0,0,0, 0.08);
    &:hover {
        /* background-color: var(--wp--preset--color--accent-1);
        color: var(--wp--preset--color--accent-2);
        .staffs__title,
        .staffs__position {
            color: var(--wp--preset--color--accent-2);
        } */
         cursor: default;
    }
}

.staffs__thumb {
    > .relative {
        height: 100%;
        img {
            object-position: top;
        }
    }
    height: 337px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.staffs__title {
    transition: color .25s ease-in;
    font-size: clamp(1.313rem, 0.224vw + 1.169rem, 1.438rem);
    margin-block-start: 0;
    margin-block-end: 5px;
}

.staffs__position {
    font-size: clamp(1rem, 0.224vw + 0.857rem, 1.125rem);
    font-weight: 700;
    color: var(--wp--preset--color--accent-1);
}

.staffs__contactinfo {
    display: flex;
    flex-direction: column;
    margin-block-start: 20px;
    a {
        background-repeat: no-repeat;
        background-position: left 2px;
        padding-left: 28px;
        transition: color .25s ease-in;
        &.staffs__contactinfo-phone {
            background-image: url(../../images/phone.svg);
        }
        &.staffs__contactinfo-email {
            background-image: url(../../images/email-icon.svg);
            background-position: left 6px;
        }
    }
}

@media (max-width: 767px)  {
    .staffs__categories {
        display: none;
        &.mobile {
            display: flex;
            height: 0;
            overflow: hidden;
            &.active {
                height: 100%;
            }
        }
    }
    .staffs__cat {
        &.mobile {
            display: block;
            width: 100%;
            margin-bottom: 15px;
        }
    }

    .staffs__catmobile {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (min-width: 768px)  {
    .staffs__categories {
        flex-direction: row;
        column-gap: 15px;
        row-gap: 30px;
        flex-wrap: wrap;
    }
    .staffs__cat {
        flex: calc(50% - 8px) 0 0;
    }
    .staffs__list  {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    .staffs__item {
        flex: calc(50% - 37.5px) 0 1;
        padding: 15px 15px 20px;
    }
}

@media (min-width: 1024px)  {
    .staffs__listing {
        margin-top: 30px;
    }
    .staffs__list  {
        gap: 20px;
    }
    .staffs__cat {
        flex: calc(33.33% - 10px) 0 0;
    }
    .staffs__item {
        flex: calc(33.33% - 43.3px) 0 1;
    }
}

@media (min-width: 1280px) {
    .staffs__cat {
        flex: calc(25% - 11.3px) 0 0;
    }
    .staffs__secton-title {
        margin-block-end:  50px;
    }
}

@media (min-width: 1536px)  {
    .staffs__listing {
        margin-top: 50px;
    }
}