/* Curing NF main page - Advisory Board */

#nf-body:not(.program_wrap) #program_team {
    background: #D9D9D6;
    position: relative;
    padding: 100px 0;
    margin-top: 140px;
}

#nf-body:not(.program_wrap) #program_team::after {
    background: #D9D9D6;
    position: absolute;
    top: -80px;
    height: 80px;
    left: 0;
    content: "";
    width: 50%;
}

#nf-body:not(.program_wrap) #program_team h3 {
    background: #fff;
    color: #07050a;
}

#nf-body:not(.program_wrap) #program_team .team_grid {
    display: grid;
    margin: 30px auto 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 30px;
}

#nf-body:not(.program_wrap) #program_team .team_grid img {
    width: 100%;
    height: auto;
    height: calc((20vw - 18px) * 1.23);
    object-fit: cover;
}

#nf-body:not(.program_wrap) #program_team .team_grid .name {
    display: block;
    margin: 8px 0 0;
}

#nf-body:not(.program_wrap) #program_team .team_grid .title {
    font-size: 12px;
    display: block;
}

#nf-body #news.nf_news {
    margin-top: 0;
}

#nf-body:not(.program_wrap):has(#program_team) #news.program_news::after {
    background: #D9D9D6;
}

@media (max-width: 1199px) {
    #nf-body:not(.program_wrap) #program_team .team_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #nf-body:not(.program_wrap) #program_team {
        margin-top: 100px;
        padding: 60px 0;
    }

    #nf-body:not(.program_wrap) #program_team::after {
        top: -40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    #nf-body:not(.program_wrap) #program_team .team_grid {
        margin-top: 20px;
        column-gap: 20px;
    }

    #nf-body #news.nf_news {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    #nf-body:not(.program_wrap) #program_team .team_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}