.teacher-grid {
    width: calc(25% - 30px);
    float: left;
    margin: 0 15px 30px;
    position: relative;
    overflow: hidden;
}
.teacher-grid::before {
    content: "";
    width: 100%;
    height: 110%;
    position: absolute;
    left: 0px;
    top: 10%;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0.4, transparent), color-stop(0.6, rgb(0, 0, 0)));
    transition: 0.5s;
}
.img-holder img {
    height: 400px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.events-section .inner p{
    color:#f7b52d;
}
@media (max-width: 1200px) {
    .teacher-grid {
        width: calc(33.33% - 30px);
    }
}
@media (max-width: 991px) {
    .teacher-grid {
        width: calc(50% - 30px);
    }
}
@media (max-width: 767px) {
    .teacher-grid {
        width: calc(100% - 30px);
    }
}
.teacher-section-label {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
}
.teacher-section-label .label-box {
    cursor: pointer;
    padding: 7px 20px;
    background: rgba(68,50,39,.1);
    border: 1px solid rgba(68,50,39,.3);
    border-radius: 6px;
    box-sizing: border-box;
}
.teacher-section-label .label-box a {
    width: 100%;
    height: 100%;
    color: rgba(68,50,39,.6);
}
.teacher-section-label .label-box:hover {
    border: 1px solid rgba(68,50,39,1);
}
.teacher-section-label .label-box:hover a {
    color: rgba(68,50,39,1);
}
.teacher-section-label .select-label {
    background: rgba(68,50,39,1);
}
.teacher-section-label .select-label a {
    color: white;
    font-weight: 500;
}
.teacher-section-label .select-label:hover a {
    color: white;
}