@charset "utf-8";

/* ===================================
   Clean Board Skin Stylesheet
   깔끔한 게시판 스킨 스타일시트
   =================================== */

/* 공통 스타일 */
* {
    box-sizing: border-box;
}

.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===================================
   게시판 목록 스타일
   =================================== */

.bo_list_clean {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 게시판 헤더 */
.bo_list_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.bo_list_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

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

.bo_list_info .total_count {
    margin-right: 10px;
}

.bo_list_info strong {
    font-weight: 700;
    color: #333;
}


/* 카테고리 */
.bo_cate_wrap {
    margin-bottom: 20px;
}

.bo_cate_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.bo_cate_list li {
    display: inline-block;
}

.bo_cate_list a {
    display: block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.bo_cate_list a:hover,
.bo_cate_list #bo_cate_on {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 상단 버튼 */
.bo_list_top_btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn_left,
.btn_right {
    display: flex;
    gap: 5px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn_write {
    background: #333;
    color: #fff;
    border-color: #333;
}

.btn_write:hover {
    background: #555;
}

.btn_delete {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.btn_delete:hover {
    background: #c82333;
}

.btn_admin {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn_admin:hover {
    background: #0056b3;
}

/* 게시판 테이블 */
.bo_table_wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.bo_table {
    width: 100%;
    border-collapse: collapse;
    /*border-top: 2px solid #333;*/
	border-top: 1px solid #dee2e6;
}

.bo_table caption {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bo_table thead th {
    padding: 12px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.bo_table tbody td {
    padding: 12px 5px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.bo_table tbody tr:hover {
    background: #f8f9fa;
}

.bo_table .td_chk {
    width: 50px;
}

.bo_table .td_num {
    width: 80px;
}

.bo_table .td_subject {
    text-align: left;
    padding-left: 15px;
}

.bo_table .td_name {
    width: 120px;
}

.bo_table .td_date {
    width: 100px;
    color: #666;
    font-size: 14px;
}

.bo_table .td_hit {
    width: 70px;
    color: #666;
}

.sv_member {font-size:11pt;}

/* 공지사항 강조 */
.bo_table .bo_notice {
    background: #fffbf0;
}

.notice_badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* 제목 링크 */
.bo_tit {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.bo_tit:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 댓글 수 */
.comment_cnt {
    color: #ff6b6b;
    font-size: 13px;
    margin-left: 5px;
}

/* 새 글 아이콘 */
.new_icon {
    display: inline-block;
    padding: 2px 5px;
    background: #28a745;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

/* 빈 테이블 */
.empty_table {
    padding: 40px 20px !important;
    text-align: center !important;
    color: #999;
    font-size: 14px;
}

/* 페이징 */
#bo_list nav {
    text-align: center;
    margin: 30px 0;
}

/* 검색 영역 */
.bo_search_wrap {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.bo_search {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
	border:none;
}

.bo_search legend {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.select_field {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.input_field {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    font-size: 14px;
}

.btn_search {
    padding: 8px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn_search:hover {
    background: #555;
}

/* ===================================
   게시글 보기 스타일
   =================================== */

.bo_view_clean {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 게시글 헤더 */
.bo_v_header {
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.bo_v_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.bo_v_cate {
    display: inline-block;
    padding: 3px 10px;
    background: #007bff;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    margin-right: 10px;
}

.bo_v_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

.bo_v_info_left,
.bo_v_info_right {
    display: flex;
    gap: 15px;
}

.bo_v_writer strong {
    color: #333;
    font-weight: 600;
}

.bo_v_ip {
    color: #999;
    font-size: 12px;
}

/* 관련링크 URL 넘침 방지 */
.bo_v_link_list a {
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* 게시글 본문 */
.bo_v_content {
    padding: 30px 0;
    min-height: 300px;
}

.bo_v_con {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.bo_v_con img {
    max-width: 100%;
    height: auto;
}

.bo_v_signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    color: #666;
    font-size: 13px;
}

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

.btn_recommend,
.btn_not_recommend {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.btn_recommend:hover {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.btn_not_recommend:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.recommend_icon {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.recommend_text {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.recommend_count {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* 첨부파일 */
.bo_v_file {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
}

.bo_v_file_title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.bo_v_file_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bo_v_file_list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.file_icon {
    margin-right: 5px;
}

.file_link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.file_link:hover {
    color: #007bff;
    text-decoration: underline;
}

.file_size {
    color: #999;
    font-size: 13px;
    margin-left: 5px;
}

.file_download {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}

/* 관련링크 */
.bo_v_link {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
}

.bo_v_link_title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.bo_v_link_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bo_v_link_list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.link_icon {
    margin-right: 5px;
}

.bo_v_link_list a {
    color: #007bff;
    text-decoration: none;
}

.bo_v_link_list a:hover {
    text-decoration: underline;
}

.link_hit {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

/* 버튼 영역 */
.bo_v_btn_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    margin-top: 30px;
}

.bo_v_btn_left,
.bo_v_btn_right {
    display: flex;
    gap: 5px;
}

.btn_list {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn_list:hover {
    background: #5a6268;
}

.btn_reply {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.btn_reply:hover {
    background: #138496;
}

.btn_modify {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
}

.btn_modify:hover {
    background: #e0a800;
}

/* 이전글/다음글 */
.bo_v_nav {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.bo_v_nav li {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

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

.nav_label {
    display: inline-block;
    width: 60px;
    font-weight: 600;
    color: #666;
}

.bo_v_nav a {
    color: #333;
    text-decoration: none;
    margin-left: 10px;
}

.bo_v_nav a:hover {
    color: #007bff;
    text-decoration: underline;
}

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

.bo_comment_clean {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #dee2e6;
}

.bo_comment_title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
}

.bo_comment_title strong {
    color: #007bff;
}

/* 댓글 목록 */
.bo_comment_list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment_item {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
}

.comment_item:hover {
    background: #f8f9fa;
}

.comment_reply {
    background: #f8f9fa;
    border-left: 3px solid #007bff;
}

.comment_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment_writer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.writer_name {
    font-weight: 600;
    color: #333;
}

.writer_ip {
    color: #999;
    font-size: 12px;
}

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

.comment_content {
    color: #333;
    line-height: 1.6;
    margin: 10px 0;
}

.secret_badge {
    display: inline-block;
    padding: 3px 8px;
    background: #ffc107;
    color: #333;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 10px;
}

.comment_actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn_comment_action {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}

.btn_comment_action:hover {
    background: #f8f9fa;
    color: #333;
}

.bo_comment_empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 댓글 쓰기 */
.bo_comment_write {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 20px;
}

.bo_comment_write_title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.comment_write_form {
    margin: 0;
}

.comment_write_info {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment_input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment_name,
.comment_password {
    flex: 1;
}

.comment_write_content {
    position: relative;
}

.comment_textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
}

.comment_write_options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment_option_left input[type="checkbox"] {
    margin-right: 5px;
}

.btn_comment_submit {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn_comment_submit:hover {
    background: #555;
}

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

.bo_write_clean {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bo_w_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.bo_write_form {
    margin-bottom: 30px;
}

/* 작성 필드 */
.write_field {
    margin-bottom: 20px;
}

.write_field_group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.write_field_half {
    flex: 1;
    min-width: calc(50% - 10px);
}

.write_label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.write_label .required {
    color: #dc3545;
    margin-left: 3px;
}

.write_select,
.write_input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.write_select:focus,
.write_input:focus,
.comment_textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 옵션 체크박스 */
.write_option_wrap {
    display: flex;
    gap: 20px;
}

.write_option_item {
    display: flex;
    align-items: center;
}

.write_option_item input[type="checkbox"] {
    margin-right: 5px;
}

/* 제목 필드 */
.write_subject_wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.write_subject {
    flex: 1;
}

.btn_autosave {
    padding: 10px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.btn_autosave:hover {
    background: #5a6268;
}

/* 파일 첨부 */
.write_file_wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.write_file {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.write_file_desc {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.write_file_info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

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

/* 버튼 */
.bo_write_btn {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    border-top: 1px solid #dee2e6;
}

.btn_submit {
    padding: 12px 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn_submit:hover {
    background: #555;
}

.btn_cancel {
    padding: 12px 40px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
}

.btn_cancel:hover {
    background: #5a6268;
}

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

@media (max-width: 768px) {
    .bo_list_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bo_list_top_btn {
        flex-direction: column;
        gap: 10px;
    }

    .btn_left,
    .btn_right {
        width: 100%;
        justify-content: center;
    }

    .bo_table .td_name,
    .bo_table .td_date,
    .bo_table .td_hit {
        display: none;
    }

    .bo_v_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .bo_v_btn_wrap {
        flex-direction: column;
        gap: 10px;
    }

    .bo_v_btn_left,
    .bo_v_btn_right {
        width: 100%;
        justify-content: center;
    }

    .write_field_group {
        flex-direction: column;
    }

    .write_field_half {
        min-width: 100%;
    }

    .write_subject_wrap {
        flex-direction: column;
    }

    .input_field {
        width: 100%;
    }

    .bo_search {
        flex-direction: column;
    }

    .select_field {
        width: 100%;
    }
}
