/**------------ LOADING ANIMATION -----------*/
.loading-animation {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--main-color-content);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 2vw auto 0 auto;
    position: absolute;
    top: 33vh;
    left: 50%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/**------------ POST GRID -----------*/
#team-post-grid-with-filter {
    position: relative;
}

/**-------filter----------*/
.team-post-grid-filter-wrapper {
    display: flex;
    justify-content: space-between;
    z-index: 9;
    position: relative;
}

.team-post-grid-filter-wrapper .uagb-heading-text {
    margin-bottom: 0;
}

.cat-list_heading {
    background-color: var(--main-color-content);
    font-family: var(--headlinefont);
    display: flex;
    align-items: center;
    gap: 7vw;
    padding: 0.5em 1.2rem;
    cursor: pointer;
}

.cat-list_heading:after {
    content: '';
    display: block;
    background-image: var(--wpr-bg-dad0b785-e39c-4c87-b685-e217b3bda2bd);
    --my-size: 1em;
    width: var(--my-size);
    height: calc(var(--my-size) / 2.422680412371134);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
}

ul.cat-list {
    list-style: none;
    padding: .5em 0 1.2em 0 !important;
    margin: 0 !important;
}

.cat-list_item {
    font-family: var(--mainfont);
    color: #000;
    border-bottom: 1px solid var(--color-6);
    padding: 0.5em 1.3rem;
    display: flex;
    position: relative;
    text-decoration: none !important;
    font-size: 0.8rem;
}

.cat-list_item.active {
    color: #fff !important;
}

/**animation*/
.post-grid-filter {
    position: relative;

}

.post-grid-filter:hover .cat-list {
    max-height: 100vh;
    transform: translateY(99%);
    opacity: 1;
    transition-delay: 0s, 0.4s, 0.4s;
    pointer-events: all;
}

.cat-list {
    flex-direction: column;
    position: absolute;
    bottom: 0;
    transform: translateY(calc(100% + 15px));
    max-height: 0;
    overflow: hidden;
    transition: opacity .5s cubic-bezier(.46, .03, .52, .96) 0s, transform .5s cubic-bezier(.46, .03, .52, .96) 0s;
    opacity: 0;
    transition-property: max-height, opacity, transform;
    transition-delay: 0.5s, 0s, 0s;
    pointer-events: none;
    width: 100%;
    background-color: var(--main-color-content);
}

/**------post grid-------*/
.team-post-gird {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 67px;
}

/**post grid item*/
.team-post-grid-item {
    background-color: var(--color-5);
    transform: translateY(50px);
    /* Start slightly off-position */
    opacity: 0;
    /* Tiles are initially invisible */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    /* Smooth transition for sliding up and fading in */
}

/* New class to apply for the transition */
.team-post-grid-item.tile-in-view {
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 1;
    transform: translateY(0);
}

.team-post-grid-info-wrapper-outter {
    padding: 2.1em 2.5em 3em 2.5em;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team-post-grid-info-wrapper-1 h2 {
    margin-bottom: 0.4em;
    font-size: 1.2rem;
}

.team-post-grid-info-wrapper-1 p {
    font-size: 14px;
}

.team-post-grid-info-wrappe-2 p {
    font-size: 0.9rem;
}

.team-post-grid-info-wrappe-2 * {
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .team-post-gird {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-grid-filter:hover .cat-list,
    .post-grid-filter .cat-list.filter-active {
        max-height: 100vh;
        transform: translateY(99%);
        opacity: 1;
        transition-delay: 0s, 0.4s, 0.4s;
        pointer-events: all;
    }
}

@media (max-width: 576px) {
    .team-post-grid-filter-wrapper {
        flex-direction: column;
        gap: 30px;
        width: fit-content;
    }

    .team-post-gird {
        grid-template-columns: repeat(1, 1fr);
    }

    .team-post-grid-info-wrapper-outter {
        padding: 2.1em 1.8em 3em 1.8em;
    }
}