/* news */
.srch-wrapper { text-align: center; margin-bottom: 60px; margin-top: 30px; }

.srch_box {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 5px 20px;
    width: 100%;
    max-width: 550px;
    transition: all 0.3s ease;
}

.srch_box:hover, .srch_box:focus-within {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #bbb;
}

.srch_type {
    border: none;
    background-color: transparent;
    font-size: 14px;
    color: #555;
    padding-right: 25px;
    margin-right: 10px;
    border-right: 1px solid #eee;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px;

    width: 85px;
    height: 40px;
}

.srch_type option {
    color: #333;
    background: #fff;
    padding: 10px;
}

.srch_input {
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    flex: 1;
    padding: 10px;
    outline: none;
}

.btn_srch {
    background: #222;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background 0.3s;
}
.btn_srch:hover { background: #000; }
.btn_srch svg { width: 18px; height: 18px; }


/* admin news-register */
#content1, .inner { height: auto !important; overflow: visible !important; }

.board_regist { border-top: 2px solid #333; border-bottom: 1px solid #ddd; margin-bottom: 20px; }
.brd_head { padding: 15px; border-bottom: 1px solid #eee; background: #f9f9f9; }

.title-area { display: flex; align-items: center; margin-bottom: 10px; }
.title-area label { width: 80px; font-weight: bold; }
.title-area input[type="text"] { flex: 1; height: 40px; border: 1px solid #ccc; padding: 0 10px; }

.import-area { display: flex; align-items: center; }
.import-area span { width: 80px; font-weight: bold; }
.import-area label { margin-right: 15px; cursor: pointer; }

.brd_body { padding: 15px 0; }

.brd-attach { background: #f5f5f5; padding: 15px; border: 1px solid #eee; margin-bottom: 20px; }
.display-flex { display: flex; align-items: center; } /* 등록화면 전용 */
.notice-text { font-size: 12px; color: #666; margin-top: 5px; }

.btn-wrapper { text-align: center; margin-top: 30px; }
.btn-wrapper .btn { padding: 10px 30px; border: 1px solid #ccc; background: #fff; cursor: pointer; margin: 0 5px; font-weight: bold; }
.btn-wrapper .btn.active { background: #333; color: #fff; border-color: #333; } /* 등록 버튼 */


/* admin news-editor */
#content1, .inner { height: auto !important; overflow: visible !important; }

.board_regist { border-top: 2px solid #333; border-bottom: 1px solid #ddd; margin-bottom: 20px; }
.brd_head { padding: 15px; border-bottom: 1px solid #eee; background: #f9f9f9; }

.title-area { display: flex; align-items: center; margin-bottom: 10px; }
.title-area label { width: 80px; font-weight: bold; }
.title-area input[type="text"] { flex: 1; height: 40px; border: 1px solid #ccc; padding: 0 10px; }

.import-area { display: flex; align-items: center; }
.import-area span { width: 80px; font-weight: bold; }
.import-area label { margin-right: 15px; cursor: pointer; }

.brd_body { padding: 15px 0; }

.brd-attach { background: #f5f5f5; padding: 15px; border: 1px solid #eee; margin-bottom: 20px; }

.attach-file-wrapper { border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 10px; }
.attach-file-wrapper li { margin-bottom: 5px; font-size: 14px; }
.attach-file-wrapper a { text-decoration: underline; color: #333; }

.display-flex { display: flex; align-items: center; }
.k-i-delete { cursor: pointer; color: #d9534f; font-weight: bold; margin-left: 5px; font-size: 12px; }
.notice-text { font-size: 12px; color: #666; margin-top: 5px; }

.btn-wrapper { text-align: center; margin-top: 30px; }
.btn-wrapper .btn { padding: 10px 30px; border: 1px solid #ccc; background: #fff; cursor: pointer; margin: 0 5px; font-weight: bold; }
.btn-wrapper .btn.active { background: #333; color: #fff; border-color: #333; } /* 수정 버튼 */
.btn-wrapper .btn.remove { background: #d9534f; color: #fff; border-color: #d9534f; } /* 삭제 버튼 */


/* news-detail */
 .edit_wrap img {
     max-width: 100% !important;
     height: auto !important;
     display: block;
 }

#content1, .inner, .board_view, .brd_body, #sh_content {
    height: auto !important;
    overflow: hidden !important;
    min-height: 500px;
}

#content1 {
    padding-bottom: 80px !important;
}

.brd_add {
    clear: both;
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.brd_add dl { display: flex; align-items: flex-start; }
.brd_add dt { font-weight: bold; width: 100px; padding-right: 10px; }
.brd_add dd { flex: 1; }
.brd_add dd a { display: block; margin-bottom: 5px; color: #333; text-decoration: underline; }

@media (max-width: 768px) {
    .tbl_board td.tit {
        white-space: normal !important;
        text-overflow: clip !important;
        overflow: visible !important;
        word-break: break-all;
    }

    .tbl_board td.tit a {
        display: inline-block;
        line-height: 1.4;
        padding: 5px 0;
        white-space: normal !important;
    }

    .tbl_board td:last-child {
        white-space: normal !important;
        text-overflow: clip !important;
        overflow: visible !important;
        letter-spacing: -1px;
    }
}
