@charset "utf-8";
#wrapper {
    overflow-x: hidden;
}
main {
  overflow-x: inherit;
}
#sub-title h1{
    color: #4f5053;
}
#sub-title p{
    color: #4f5053;
}
#doctors #sub-title strong::before{
    background-color: #c9c9d6;
}

#academic-list{
    padding: 10rem 0 10rem;
    position: relative;
}
footer::before{
    content: '';
    background-color: white;
    position: absolute;
    left: 50%;
    top: 0;
    width: 200%;
    height: 100%;
    transform: translate(-50%,0);
    z-index: 1;
}
#footer{
    position: relative;
    z-index: 2;
}
#academic-category ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5rem;
}
#academic-category button {
    font-size: 1.6rem;
    border-radius: 50rem;
    border: 1px solid #b4b5b9;
    padding: 1rem 2rem;
    color: #898a8d;
}
#academic-category button.active {
    background-color: #618aff;
    border-color: #618aff;
    color: white;
}
#academic-items{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 3rem;
}
.academic-item{
    border: 1px solid #e8e8e8;
    cursor: pointer;
}
.academic-item figure{
    margin: 0;
}
.academic-item .info{
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 3rem 2rem;
}
.academic-item h2{
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
}
.academic-item time{
    color: #6f6f6f;
    font-size: 1.3rem;
    font-weight: 400;
}
@media (max-width: 768px) {
    #academic-list{
        padding: 7rem 0 10rem;
    }
    #academic-category ul {
        gap: 0.6rem;
    }
    #academic-category button {
        font-size: 1.5rem;
        padding: 0.6rem 1.4rem;
    }
    #academic-items{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
    .academic-item .info{
        padding: 2.4rem 1.6rem;
    }
}