@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ========================================
   게시판 공통 스타일 - 메인 테마 통합
======================================== */

/* 게시판 전체 래퍼 */
#bo_list,
#bo_v,
#bo_w {
    background: white;
    padding: 30px 20px;
    margin: 20px auto;
    max-width: 1200px;
}

/* 카테고리 스타일 */
#bo_cate {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff8000;
}

#bo_cate h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_cate_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#bo_cate_ul li a {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 25px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

#bo_cate_ul li a:hover,
#bo_cate #bo_cate_on {
    background: #ff8000;
    color: white;
}

/* 상단 정보 및 버튼 영역 */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#bo_list_total {
    font-size: 14px;
    color: #666;
}

#bo_list_total span {
    color: #ff8000;
    font-weight: bold;
}

/* 버튼 스타일 통합 */
.btn_bo_user {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 버튼 간격 줄임 */
    margin: 10px 0;
    align-items: center;
}

/* 글쓰기 버튼을 하단 오른쪽으로 */
#bo_btn_bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    align-items: center;
}

#bo_btn_bottom .btn_write {
    margin-left: auto;
}

/* 상단 버튼 주황 배경 제거 */
#bo_btn_top .btn_b02 {
    background: #f8f8f8;
    color: #333;
    border-color: #ddd;
}

#bo_btn_top .btn_b02:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #000;
}

.btn_bo_user li {
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn_b01 {
    background: #f8f8f8;
    border-color: #ddd;
    color: #333;
}

.btn_b01:hover {
    background: #e8e8e8;
}

.btn_b02 {
    background: #ff8000;
    color: white;
    border-color: #ff8000;
}

.btn_b02:hover {
    background: #e67300;
    border-color: #e67300;
}

/* 게시판 테이블 스타일 */
.tbl_head01 {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tbl_head01 caption {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.tbl_head01 table {
    width: 100%;
}

.tbl_head01 thead th {
    padding: 15px 10px;
    background: #fafafa;
    border-top: 2px solid #ff8000;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.tbl_head01 tbody tr {
    transition: background 0.2s;
}

.tbl_head01 tbody tr:hover {
    background: #fafafa;
}

.tbl_head01 td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* 공지사항 행 */
.bo_notice {
    background: #fff5f0;
}

.bo_notice td {
    font-weight: 500;
}

.notice_icon {
    display: inline-block;
    padding: 3px 10px;
    background: #ff8000;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    font-weight: normal;
}

/* 제목 컬럼 스타일 */
.td_subject {
    text-align: left !important;
    padding-left: 20px !important;
}

.bo_tit a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.bo_tit a:hover {
    color: #ff8000;
}

/* 답변 아이콘 */
.reply_icon {
    display: inline-block;
    padding: 2px 8px;
    background: #666;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 5px;
}

/* 카테고리 링크 */
.bo_cate_link {
    display: inline-block;
    padding: 2px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    border-radius: 12px;
    margin-right: 8px;
    text-decoration: none;
}

.bo_cate_link:hover {
    background: #ff8000;
    color: white;
}

/* 댓글 수 표시 */
.comment_cnt {
    display: inline-block;
    padding: 2px 8px;
    background: #ff8000;
    color: white;
    font-size: 11px;
    border-radius: 10px;
    margin-left: 5px;
}

/* 아이콘 스타일 */
.fa {
    margin-right: 5px;
}

/* 체크박스 스타일 */
.chk_box {
    display: table-cell;
}

.selec_chk {
    display: none;
}

.selec_chk {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    vertical-align: middle;
}

.selec_chk + label span {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.selec_chk:checked + label::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff8000;
    font-size: 12px;
}

/* 검색 영역 */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    min-width: 400px;
}

.bo_sch h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

#sfl {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.sch_bar {
    display: inline-block;
    position: relative;
}

.sch_input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    margin-right: 10px;
}

.sch_btn {
    padding: 10px 20px;
    background: #ff8000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.sch_btn:hover {
    background: #e67300;
}

.bo_sch_cls {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

/* 페이지네이션 */
.pg_wrap {
    text-align: center;
    margin: 40px 0;
}

.pg {
    display: inline-block;
}

.pg a,
.pg strong {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pg a:hover {
    background: #ff8000;
    border-color: #ff8000;
    color: white;
}

.pg strong,
.pg .pg_current {
    background: #ff8000;
    border-color: #ff8000;
    color: white;
}

/* ========================================
   게시판 읽기 (view) 스타일
======================================== */

#bo_v header {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

#bo_v_title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.bo_v_cate {
    display: inline-block;
    padding: 5px 15px;
    background: #ff8000;
    color: white;
    font-size: 13px;
    border-radius: 15px;
    margin-right: 10px;
}

#bo_v_info {
    font-size: 13px;
    color: #666;
}

#bo_v_info strong {
    margin: 0 15px 0 5px;
    color: #333;
}

#bo_v_con {
    padding: 30px 0;
    line-height: 1.8;
    font-size: 15px;
    color: #333;
    word-break: break-word;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* 추천/비추천 */
#bo_v_act {
    text-align: center;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.bo_v_act_gng {
    display: inline-block;
    margin: 0 10px;
}

.bo_v_good,
.bo_v_nogood {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.bo_v_good:hover {
    background: #ff8000;
    border-color: #ff8000;
    color: white;
}

.bo_v_nogood:hover {
    background: #666;
    border-color: #666;
    color: white;
}

/* 첨부파일 */
#bo_v_file {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

#bo_v_file h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

#bo_v_file ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#bo_v_file li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

#bo_v_file li:last-child {
    border-bottom: none;
}

#bo_v_file a {
    color: #333;
    text-decoration: none;
}

#bo_v_file a:hover {
    color: #ff8000;
}

/* 이전글/다음글 */
.bo_v_nb {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.bo_v_nb li {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.bo_v_nb li:last-child {
    border-bottom: none;
}

.nb_tit {
    display: inline-block;
    width: 80px;
    color: #666;
    font-size: 13px;
}

.nb_tit i {
    color: #ff8000;
}

.bo_v_nb a {
    color: #333;
    text-decoration: none;
}

.bo_v_nb a:hover {
    color: #ff8000;
}

.nb_date {
    float: right;
    color: #999;
    font-size: 12px;
}

/* ========================================
   댓글 스타일
======================================== */

#bo_vc {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

#bo_vc h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

#bo_vc article {
    padding: 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

#bo_vc header {
    margin-bottom: 15px;
}

.profile_img {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.profile_img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.bo_vc_hdinfo {
    display: inline-block;
    vertical-align: middle;
}

.bo_vc_hdinfo > span:first-child {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.bo_vc_date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.cmt_contents {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.bo_vc_act {
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.bo_vc_act li {
    display: inline-block;
    margin-right: 5px;
}

.btn_b03 {
    padding: 5px 12px;
    background: white;
    border: 1px solid #ddd;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
}

.btn_b03:hover {
    background: #ff8000;
    border-color: #ff8000;
    color: white;
}

/* 댓글 작성 */
#bo_vc_w {
    margin-top: 30px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 10px;
}

#bo_vc_w h2 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.bo_vc_w_info {
    margin-bottom: 15px;
}

.bo_vc_w_info input {
    width: 49%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.bo_vc_w_info input:first-child {
    margin-right: 2%;
}

#wr_content {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    resize: vertical;
    min-height: 100px;
}

.bo_vc_w_wr {
    position: relative;
}

#char_cnt {
    position: absolute;
    bottom: -25px;
    right: 0;
    font-size: 12px;
    color: #666;
}

#char_count {
    color: #ff8000;
    font-weight: bold;
}

.btn_confirm {
    margin-top: 20px;
    text-align: right;
}

.btn_bt {
  //  padding: 10px 30px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn_bt:hover {
   // background: #e67300;
}

/* ========================================
   글쓰기 스타일
======================================== */

.write_div {
    margin-bottom: 20px;
}

.write_div label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.frm_input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    transition: border-color 0.3s;
}

.frm_input:focus {
    border-color: #ff8000;
    outline: none;
}

.full_input {
    width: 100%;
}

.half_input {
    width: 49%;
}

.wr_content {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

/* 파일 첨부 */
.bo_w_file {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.file_wr {
    margin-bottom: 10px;
}

.lb_icon {
    display: inline-block;
    margin-right: 10px;
    color: #666;
}

.file_del {
    display: block;
    margin-top: 5px;
    color: #ff8000;
    font-size: 13px;
}

/* 옵션 체크박스 */
.bo_v_option {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.bo_v_option li label {
    cursor: pointer;
    font-weight: normal;
}

/* ========================================
   반응형 스타일
======================================== */

@media (max-width: 768px) {
    #bo_list,
    #bo_v,
    #bo_w {
        padding: 20px 15px;
    }
    
    /* 모바일 테이블 */
    .td_name,
    .td_datetime,
    .td_num {
        display: none;
    }
    
    .td_subject {
        padding-left: 10px !important;
    }
    
    /* 모바일 버튼 */
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 모바일 검색 */
    .bo_sch {
        min-width: 90%;
        padding: 20px;
    }
    
    .sch_input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* 모바일 댓글 입력 */
    .bo_vc_w_info input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .bo_vc_w_info input:first-child {
        margin-right: 0;
    }
    
    /* 모바일 글쓰기 */
    .half_input {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    #bo_v_title {
        font-size: 18px;
    }
    
    #bo_v_info strong {
        display: block;
        margin: 5px 0;
    }
    
    .pg a,
    .pg strong {
        padding: 6px 10px;
        font-size: 12px;
    }
}









.btn_submit {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn_submit {
    background: #ff8000;
    color: white;
}
.btn_submit:hover {
    background: #e67300;
}



/* 제목 입력 스타일 */
.bo_w_tit input#wr_subject {
    font-size: 16px;
    border: 2px solid #ff8000;
    border-radius: 8px;
    padding: 14px 18px;
    font-weight: 500;
    background-color: #fff;
    transition: box-shadow 0.3s;
}
.bo_w_tit input#wr_subject:focus {
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.2);
    outline: none;
}


/* 글쓰기 전체 영역 */
#fwrite {
    background: #ffffff;
    padding: 30px 20px;
    margin: 30px auto;
    max-width: 900px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 제목 입력 */
.bo_w_tit input#wr_subject {
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    width: 100%;
    transition: border-color 0.3s;
}
.bo_w_tit input#wr_subject:focus {
    border-color: #ff8000;
    outline: none;
}

/* 내용 */
.wr_content textarea,
.wr_content .smarteditor2 iframe {
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 300px;
    background: #fff;
}

/* 입력 필드 */
.frm_input {
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: border-color 0.3s;
    background: white;
}
.frm_input:focus {
    border-color: #ff8000;
    outline: none;
}

/* 구역 간격 조정 */
.write_div {
    margin-bottom: 25px;
}

/* 옵션 체크박스 정렬 */
.bo_v_option {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    list-style: none;
}

/* 파일 업로드 */
.bo_w_file {
    padding: 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
}
.file_wr {
    margin-bottom: 10px;
}

 

/* 임시 저장 버튼 */
#btn_autosave {
    margin-top: 10px;
    padding: 6px 12px;
    background: #eee;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

/* 반응형 */
@media (max-width: 768px) {
    .half_input {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .btn_confirm {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 제목 입력 스타일 */
.bo_w_tit input#wr_subject {
    font-size: 16px;
    border: 2px solid #ff8000;
    border-radius: 8px;
    padding: 14px 18px;
    font-weight: 500;
    background-color: #fff;
    transition: box-shadow 0.3s;
}
.bo_w_tit input#wr_subject:focus {
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.2);
    outline: none;
}

/* 임시저장 버튼 */
#btn_autosave {
    margin-top: 12px;
    background-color: #ff8000;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
#btn_autosave:hover {
    background-color: #e76f00;
}

/* 임시저장 목록 */
#autosave_pop {
    margin-top: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
}
#autosave_pop strong {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
#autosave_pop ul {
    margin: 0;
    padding-left: 20px;
}
#autosave_pop button.autosave_close {
    margin-top: 10px;
    background: #ddd;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* 옵션 체크박스 배치 */
.bo_v_option {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.bo_v_option .chk_box {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bo_v_option input[type="checkbox"] {
    transform: scale(1.2);
}

/* 파일 업로드 */
.bo_w_file {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.file_wr {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.file_wr label.lb_icon {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-right: 12px;
    color: #555;
}
.file_wr input[type="file"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
}

/* 설명 입력란 */
.bo_w_file input[type="text"] {
    margin-top: 5px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    width: 100%;
}

/* 필드 간격 개선 */
.write_div {
    margin-bottom: 28px;
}

/* 버튼 */
.btn_submit,
.btn_cancel {
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
}
