input:focus{
    border:0;
    outline:none;
}
.btn_box{
    display:flex;
    align-items:center;
    padding:10px 30px;
    text-align:center;
    background:#36C0FF;
}
.btn_box span,
.btn_box i{
    color:#fff;
}
.btn_box i{
    margin-left:10px;
    font-size:13px;
}
.btn_box .icon_area{
    display:inline-flex;
    align-items: center;
    width:24px;
    height:24px;
}

.search_body{
    position:relative;
}
.search_body:after{
    content: '';
    display:block;
    clear:both
}
.search_body p,
.search_body span{
    font-size:14px;
}
.search_body .total{
    display:inline-block;
    vertical-align: middle;
}
.search_body .search_box{
    display:flex;
    align-items: center;
}
.search_body .search_box p,
.search_body .search_box input{
    margin-right:10px;
}
.search_body .search_box input{
    border:1px solid #767676;
}

.search_body .total{
    position:relative;
    top:5px;
}
.search_body .search_box{
    float:right;
}
.search_body .search_box input{
    width:150px;
    height:38px;
    padding:10px;
    border:1px solid #767676;
    box-sizing: border-box;
}
table{
    width:100%;
    border-spacing: 1px;
    margin-top:26px;
}
caption{
    display:none;
}
.table tr{
    border-top: 1px solid #B3B3B3;
}
.table tr:last-child{
    border-bottom: 1px solid #B3B3B3;
}
.table th,
.table td{
    padding:12px 4px;
    font-size:14px;
    text-align: center;
    color:#767676
}
.table th{
    background:#F5F5F5;
}
.table td a{
    font-size:14px;
    color:#767676;
    display:block
}

/* 공지사항 - 제목 한 줄 말줄임 */
#main.notice .table{
    table-layout:fixed;
}
#main.notice .table tbody td:nth-child(2) a{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.paging{
    margin-top:10px;
}
.paging ul{
    /* display:flex;
    justify-content: center; */
    text-align: center;
}
.paging ul li{
    display:inline-block;
    vertical-align: middle;
}
.paging ul li a{
    padding:6px 10px;
    font-size:14px;
    margin:0 -2px;
    display:flex;
    align-items: center;
    opacity: 0.5;
}
.paging ul li.active a{
    opacity: 1;
}

/* 치료사례 */
.tab{
    display:block;
    text-align: center;
    margin-bottom:80px;
}
.tab li{
    display:inline-block;
    vertical-align: middle;
    margin:0 32px;
}
.tab li a{
    transition:color .3s ease-in-out
}
.tab li:hover a,
.tab li.active a{
    color:#36C0FF
}


.gallerybd{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:50px 24px;
    margin-top:35px;
}
.gallerybd .thumb{
    position:relative;
    height: 308px;
    overflow:hidden;
    aspect-ratio: auto;
}
.gallerybd .thumb img{
    transform: scale(1);
    transition:transform 0.5s ease-in-out
}
.gallerybd .thumb:hover img{
    transform: scale(1.1);
}
.gallerybd .thumb .lock{
    position:absolute;
    height:50%;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.9);
    text-align: center;
    align-content: center;
    aspect-ratio: 16 / 5.3;
}
.gallerybd .thumb .lock i,
.gallerybd .thumb .lock p{
    color:#fff;
}
.gallerybd .thumb .lock p{
    margin-top:8px;
}
.gallerybd .thumb .lock .after{
    text-transform: uppercase;
}
.gallerybd .card_body{
    text-align: center;
}
.gallerybd .card_body .title strong{
    color:#36C0FF;
    margin-right:15px;
}
.gallerybd .card_body .text{
    margin-top:15px;
    color:#767676;
    font-size:14px;
}
.noti_btm {
    position:relative;
    margin-top:96px;
}
.noti_btm:after{
    content:'';
    display:block;
    clear: both;
}
.noti_btm .btn{
    position:absolute;
    top:-7px;
    right:0;
}

.mediabd{
    display:grid;
    grid-template-columns: repeat(4, 1fr); 
}
.mediabd .thumb{
    height: auto;
    border:1px solid #ededed;
    border-radius: 12px;
    aspect-ratio: auto 1 / 1;
}

.mediabd .card_body .title,
.mediabd .card_body .data{
    text-align: left;
}
.mediabd .card_body .title{
    font-size:15px;
    font-weight:600;
}
.mediabd .card_body .data{
    color:#bdc5c9
}

/* 게시글 상세 */
#main.board_view .view_head{
    border-top:2px solid #222;
    border-bottom:1px solid #ddd;
    padding:32px 24px;
}
#main.board_view .view_head .category{
    display:inline-block;
    color:#36C0FF;
    font-weight:600;
    margin-bottom:12px;
}
#main.board_view .view_head .title{
    font-size:24px;
    font-weight:600;
    color:#222;
    margin-bottom:16px;
    word-break:keep-all;
}
#main.board_view .view_head .meta{
    color:#888;
    font-size:14px;
}
#main.board_view .view_head .meta span{
    margin-right:16px;
}
#main.board_view .view_body{
    padding:40px 24px;
    min-height:240px;
    border-bottom:1px solid #ddd;
}
#main.board_view .view_body .content{
    line-height:1.7;
    color:#333;
    word-break:keep-all;
}
#main.board_view .view_body .content img{
    width: auto;
    max-width:100%;
    height:auto;
}
#main.board_view .view_btm{
    text-align:center;
    margin-top:40px;
}
#main.board_view .view_btm .btn_list{
    display:inline-block;
    padding:14px 36px;
    border:1px solid #222;
    color:#222;
    font-weight:500;
    transition:all .2s ease-in-out;
}
#main.board_view .view_btm .btn_list:hover{
    background:#222;
    color:#fff;
}

@media(max-width:780px){
    .search_body{
        display:flex;
        flex-direction: column-reverse;
    }
    .search_body .search_box{
        float:none;
        margin-bottom:24px;
    }
    .search_body .search_box input{
        width:100%;
    }

    .table th, .table td{
        font-size:12px;
    }
    /* 공지사항 - 모바일에서 이름 컬럼 숨김 및 너비 조정 */
    #main.notice .table thead th:nth-child(3),
    #main.notice .table tbody td:nth-child(3),
    #main.notice .table colgroup col:nth-child(3){
        display:none;
    }
    #main.notice .table colgroup col:nth-child(2){ width:50%; }
    #main.notice .table colgroup col:nth-child(4){ width:20%; }

    .tab {
        display:flex;
        margin-bottom:30px;
    }
    .tab li{
        margin:0 5px;
    }
    .gallerybd{
        gap:16px;
        margin-top:24px;
        height:50%;
        grid-template-columns: repeat(1, 1fr);
    }

    .gallerybd .thumb {
        height: 230px;
    }
    .gallerybd .thumb .lock{
        aspect-ratio: auto;
    }
    .noti_btm{
        margin-top:40px;
    }
    .noti_btm .btn{
        position:relative;
        margin-top:30px;
        top:0;
        text-align: center;
    }
    .noti_btm .btn .btn_box{
        width:100%;
        justify-content: center;
    }
    .btn_box{
        padding:10px 15px;
    }
    .btn_box .icon_area{
        width:16px;
        height:16px;
    }

    /* 미디어 */
    .mediabd{
        grid-template-columns: repeat(2, 1fr);
    }

    .mediabd .thumb {
        height: auto;
    }

    /* 게시글 상세 */
    #main.board_view .view_head{ padding:24px 16px; }
    #main.board_view .view_head .title{ font-size:18px; }
    #main.board_view .view_body{ padding:24px 16px; }
}
