@charset "utf-8";

/* 공통 */
/* intro */
.intro{
    background-image: url(../img/before-after/intro-bna.jpg);
}



/* 임상사례 페이지 */
/* clinical  */
.clinical {
    padding: 20rem 0;
}

/* filter_call(모바일 전용) */
.filter{
    width: 100%;
    height: fit-content;
    position: relative;
    z-index: 3;
}
.clinical .filter_call{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 25px;
    color: #fff;
    background: var(--main);
    border-radius: 4px;
    cursor: pointer;
    display: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.clinical .filter_call.on{
    border-radius: 4px 4px 0 0 ;
}
.clinical .filter_call b{
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.002em;
}
.clinical .filter_call .icon_box{
    width: 22px;
    height: 12px;
    background: url(../img/common/icon_m_down.svg) no-repeat;
    background-size: contain;
}
.clinical .filter_call.on .icon_box{
    background-image: url(../img/common/icon_m_up.svg);
}

/* 카테고리 필터 */
.clinical nav{
    width: 100%;
}
.clinical nav ul{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.clinical nav ul li{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #8a8a8a;
    padding: 1.7rem 0;
    border-bottom: 1px solid #bbb;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}
.clinical nav ul li.on{
    border-bottom: 2px solid var(--main);
    color: var(--dark2);
    font-weight: 600;
}

/* .case_list */
.clinical .case_list{
    margin-top: 9rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    row-gap: 7rem;
}
.clinical .case_list article a{
    width: 100%;
    display: block;
}
.clinical .case_list article a .img_box{
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}
.clinical .case_list article a .img_box img{
    width: 100%;
    aspect-ratio: 1 / 0.725;
    object-fit: cover;
    transition: .5s;
}
.clinical .case_list article:hover a .img_box img{
    transform: scale(1.05);
    filter: brightness(.8);
}
.clinical .case_list article a h3{
    margin-top: 2rem;
    font-size: 2.4rem;
    color: var(--main);
}
.clinical .case_list article a h4{
    margin-top: .7rem;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.42;
}



/* .page */
.clinical .page{
    margin: 9rem auto 0;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 3rem;
}
.clinical .page button{
    height: 2.4rem;
}
.clinical .page button img{
    height: 100%;
    object-fit: contain;
}
.clinical .page .pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    font-family: "roboto", sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 1.16;
    color: var(--grey2);
}
.clinical .page .pagination .current{
    margin: 0px 0.7rem;
    font-weight: 600;
    color: var(--dark2);
}
.clinical .page .pagination .total{
    margin: 0px 0.7rem;
    font-size: 1.8rem;
}




/* 게시글 페이지 */
/* posting_area */
.posting_area{
    width: 100%;
    background: #F6F6F4;
}
.posting_area .wrap{
    display: flex;
    flex-direction: column;
}
.posting_area .back{
    margin-top: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: fit-content;
    font-weight: 500;
    font-size: 18px;
    color: var(--main);
    background: #fff;
    border: 1px solid var(--main);
    border-radius: .8rem;
    box-shadow: 0 0 4px 0 rgba(0,0,0,.08);
    padding: 8px 20px;
    transition: .4s;
}
.posting_area .back img{
    height: 12px;
    object-fit: contain;
}
.posting_area .back:hover{
    background: #F6F6F4;
}

/* metadata */
.posting_area .metadata{
    margin-top: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--main);
    border-radius: 2px;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    padding: 4rem 6rem;
    color: #fff;
}
.posting_area .metadata .text_box{
    width: 55%;
}
.posting_area .metadata h3{
    margin-top: 1rem;
    width: 40%;
    font-weight: 300;
    font-size: 2.2rem;
    border-left: 1px solid #fff;
    padding-left: 4rem;
}

/* content */
.posting_area .content{
    margin-top: 2.5rem;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    padding: 10rem;
}
.posting_area .content img{
    width: 100%;
    object-fit: contain;
}

/* 목록 바로가기 */
.posting_area a.go_list{
    margin-top: 7rem;
    display: inline-block;
    align-self: flex-end;
    text-align: center;
    font-weight: 400;
    font-size: 2.2rem;
    color: #fff;
    background: var(--main);
    border-radius: .8rem;
    box-shadow: 0 0 4px 0 rgba(0,0,0,.08);
    padding: 1.2rem 2.5rem;
    transition: .4s;
}
.posting_area a.go_list:hover{
    opacity: .8;
}


/* 이전, 다음글 이동 */
.posting_area ul{
    margin-top: 2rem;
    margin-bottom: 10rem;
    width: 100%;
}
.posting_area ul li{
    width: 100%;
    display: flex;
    align-items: center;
    line-height: 1.4;
    color: var(--dark2);
    border-top: 1px solid #bbb;
}
.posting_area ul li:last-child{
    border-bottom: 1px solid #bbb;
}
.posting_area ul li span{
    display: block;
    font-weight: 500;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    padding: 1rem 2.5rem;
}
.posting_area ul li a{
    display: block;
    flex: 1;
    padding: 1rem 2.5rem;
    font-size: 2.4rem;
    font-weight: 300;
    border-left: 1px solid #bbb;
    white-space: nowrap;     
    overflow: hidden;       
    text-overflow: ellipsis;
}