@import "../component-loading/style.css";

.team-doctors-list{
    overflow: hidden;
    >.container{
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.team-doctors-category{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 80px;
    padding: 16px 0 16px 60px;
    position: relative;
    z-index: 1;
    &::after{
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0 auto 0 0;
        width: 100vw;
        background-color: var(--color-secondary-1);
        border-radius: 999px 0 0 999px;
    }
    >button{
        font-weight: 500;
        opacity: 0.4;
        transition: opacity 0.3s;
        &:hover,
        &.active{
            opacity: 1;
        }
    }
}

.team-doctors-mobile-category{
    display: none;
    margin-bottom: 40px;
    position: relative;
    #team-doctors-mobile-category{
        appearance: none;
        width: 100%;
        padding: 12px 24px;
        border: none;
        border-radius: 999px;
        background-color: var(--color-secondary-1);
        color: var(--color-gray-2);
        outline: none;
        text-align: center;
    }
    >div{
        position: absolute;
        top: 12px;
        right: 24px;
    }
}

.doctors-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px 24px;
    >.card{
        grid-row: span 3;
        display: grid;
        grid-template-rows: subgrid;
        margin-bottom: 60px;
        >.img{
            margin-bottom: 24px;
            border-radius: 50%;
            overflow: hidden;
            >img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.3s;
            }
        }
        >p{
            text-align: center;
            color: var(--color-primary-2);
            margin-bottom: 4px;
            font-weight: 500;
        }
        >h4{
            text-align: center;
            transition: color 0.3s;
        }

        &:hover{
            >.img > img{
                transform: scale(1.1);
            }
            >h4{
                color: var(--color-primary-2);
            }
        }
    }
    >.no-data{
        grid-column: 1 / -1;
        >p{
            text-align: center;
            padding: 200px 0;
        }
    }
}

@media screen and (width < 768px) {
    .team-doctors-category{
        gap: 16px;
        padding: 16px 0 16px 40px;
    }
}

@media screen and (width < 576px) {
    .team-doctors-list > .container{
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .team-doctors-category{
        display: none;
    }
    .team-doctors-mobile-category{
        display: block;
    }
    .doctors-list{
        grid-template-columns: repeat(2, 1fr);
        gap: 0px 8px;
        >.card{
            margin-bottom: 36px;
        }
    }
}