@charset "utf-8";

/* 게시판 헤더 */
.board_header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.board_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
    letter-spacing: -1px;
}

.board_search {
    position: relative;
    max-width: 400px;
    margin-left: auto;
}

.search_input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    background-color: #f8f8f8;
}

.search_btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

/* 게시판 리스트 스타일 */
.board_list_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.board_list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list_item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #c9c9c9;
    transition: all 0.3s ease;
    background: #fff;
}

.list_item:first-child {
    border-top: 1px solid #c9c9c9;
}

.list_item:hover {
    background-color: #f8f8f8;
}

/* 공지 게시물 스타일 */
.list_item.notice {
    background-color: #f5f5f5;
}

.list_item.notice:hover {
    background-color: #fff;
}

.list_link {
    display: block;
    text-decoration: none;
    color: #111;
    padding: 35px 0;
}

.list_check {
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.list_content {
    padding: 0 30px;
    flex: 1;
}

.list_title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: keep-all;
    color: #111;
    transition: color 0.3s ease;
}

.list_excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list_info {
    font-size: 15px;
    color: #999;
    display: flex;
    gap: 15px;
}

.list_writer {
    color: #666;
    font-weight: 500;
}

.list_date {
    position: relative;
}

.list_date:before {
    content: '';
    display: block;
    width: 1px;
    height: 12px;
    background: #ddd;
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
}

.list_item:hover .list_link {
    color: #111;
}

.list_item:hover .list_info {
    color: #999;
}

.list_item:hover .list_title {
    color: #8B4513;
}

/* 페이지네이션 */
.pg_wrap {
    text-align: center;
    margin: 50px 0;
}

.pg_page, .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: 14px;
}

.pg_page {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.pg_current {
    background: #111;
    color: #fff;
    border: 1px solid #111;
}

/* 버튼 스타일 */
.board_btn_wrap {
    text-align: right;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #333;
}

.btn_list {
    background-color: #666;
}

.btn_write {
    margin-left: 10px;
}

/* 관리자 버튼 */
.admin_btn_wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.admin_btn {
    display: inline-block;
    min-width: 120px;
    padding: 15px 30px;
    background: #8B4513;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.admin_btn:hover {
    background: #A0522D;
}

.btn_delete {
    background: #e74c3c;
}

.btn_delete:hover {
    background: #c0392b;
}

/* 글쓰기 버튼 스타일 */
.write_btn_wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.btn_write_submit {
    background: #8B4513;
}

.btn_write_cancel {
    background: #666;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .board_title {
        font-size: 28px;
    }
    
    .list_link {
        padding: 25px 0;
    }
    
    .list_title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .list_info {
        font-size: 14px;
    }

    .admin_btn_wrap {
        flex-wrap: wrap;
    }

    .admin_btn {
        min-width: 100px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .board_header,
    .board_list_wrap {
        padding: 0 15px;
    }
    
    .board_title {
        font-size: 24px;
    }
    
    .search_input {
        padding: 10px 40px 10px 15px;
        font-size: 14px;
    }
    
    .list_link {
        padding: 20px 0;
    }
    
    .list_title {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .admin_btn {
        flex: 1;
        min-width: auto;
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* 게시글 보기 스타일 */
#bo_v {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.view_header {
    padding: 40px 0;
    border-bottom: 2px solid #111;
}

.view_category {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.view_title {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.3;
    word-break: keep-all;
    letter-spacing: -1px;
}

.view_info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 15px;
}

.view_hit:before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #ddd;
    margin-right: 20px;
    vertical-align: middle;
}

.view_content {
    padding: 50px 0;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
    letter-spacing: -1px;
}


.view_content a {
    color: #8B4513;
    text-decoration: none;
}

.view_content a:hover {
    text-decoration: underline;
}

.view_content h1,
.view_content h2,
.view_content h3,
.view_content h4,
.view_content h5,
.view_content h6 {
    font-weight: 700;
    margin: 1.5em 0 0.8em;
    line-height: 1.4;
}

.view_content h1 { font-size: 2em; }
.view_content h2 { font-size: 1.8em; }
.view_content h3 { font-size: 1.6em; }
.view_content h4 { font-size: 1.4em; }
.view_content h5 { font-size: 1.2em; }
.view_content h6 { font-size: 1.1em; }

.view_content ul,
.view_content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.view_content li {
    margin: 0.5em 0;
}

.view_content blockquote {
    margin: 2em 0;
    padding: 1em 2em;
    border-left: 4px solid #8B4513;
    background: #f8f8f8;
    color: #666;
}

/* 첨부파일 */
.view_file {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.view_file h3 {
    font-size: 16px;
    color: #111;
    margin-bottom: 10px;
}

.view_file ul {
    list-style: none;
    padding: 0;
}

.view_file_link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
}

.view_file_link:hover {
    text-decoration: underline;
}

/* 이전글/다음글 네비게이션 */
.view_nav_wrap {
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.view_nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.nav_prev, .nav_next {
    display: flex;
    align-items: center;
    padding: 25px 0;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #eee;
}

.nav_label {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    width: 80px;
}

.nav_title {
    font-size: 16px;
    margin: 0;
    flex: 1;
    letter-spacing: -1px;
}

.btn_list {
    display: inline-block;
    min-width: 160px;
    padding: 15px 40px;
    background: #8B4513;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    margin: 0 auto;
}

.btn_list_wrap {
    text-align: center;
    margin-top: 40px;
}

.btn_list:hover {
    background: #A0522D;
}

/* 댓글 스타일 */
.view_comment {
    margin-top: 50px;
}

#bo_vc {
    padding: 30px;
    background: #f8f8f8;
    border-radius: 10px;
}

.comment_write {
    margin-top: 20px;
}

.comment_write textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    resize: none;
    font-size: 15px;
}

.comment_write_btn {
    margin-top: 10px;
    text-align: right;
}

.comment_write_btn .btn {
    padding: 8px 20px;
    font-size: 14px;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .view_header {
        padding: 30px 0;
    }

    .view_title {
        font-size: 28px;
    }

    .view_content {
        padding: 30px 0;
        font-size: 16px;
    }

    .nav_prev, .nav_next {
        padding: 20px 0;
    }

    .btn_list {
        position: static;
        transform: none;
        display: block;
        text-align: center;
        margin-top: 20px;
    }
}

@media screen and (max-width: 480px) {
    #bo_v {
        padding: 0 15px;
    }

    .view_title {
        font-size: 24px;
    }

    .view_content {
        padding: 20px 0;
        font-size: 15px;
    }

    .nav_label {
        width: 60px;
        font-size: 13px;
    }

    .nav_title {
        font-size: 14px;
    }
}

/* 카테고리 */
#bo_cate {
    margin: 0 0 30px;
    padding: 0 20px;
}

#bo_cate h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_cate ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

#bo_cate a {
    display: block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

#bo_cate a:hover,
#bo_cate #bo_cate_on {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

/* 새 아이콘 */
.new_icon {
    display: inline-block;
    padding: 0 6px;
    line-height: 16px;
    font-size: 11px;
    color: #fff;
    background: #ff4a4a;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 공지사항 아이콘 */
.notice_icon {
    display: inline-block;
    padding: 0 8px;
    line-height: 20px;
    font-size: 12px;
    color: #fff;
    background: #8B4513;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 댓글 수 */
.cnt_cmt {
    display: inline-block;
    padding: 0 5px;
    font-size: 12px;
    color: #ff4a4a;
    vertical-align: middle;
}

/* 카테고리 표시 */
.list_category {
    display: inline-block;
    margin-right: 10px;
    color: #666;
    font-size: 14px;
}

/* 빈 목록 */
.empty_list {
    padding: 50px 0;
    text-align: center;
    color: #666;
    font-size: 15px;
}

/* 추천, 비추천 버튼 */
.view_vote {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.vote_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.vote_btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.vote_btn span {
    font-size: 14px;
    margin-bottom: 5px;
}

.vote_btn strong {
    font-size: 16px;
    color: #111;
}

.vote_btn.good:hover {
    color: #2ecc71;
}

.vote_btn.bad:hover {
    color: #e74c3c;
}

/* 서명 */
.view_signature {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 5px;
    color: #666;
    font-size: 14px;
}

/* 파일 정보 */
.file_info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* 댓글 영역 */
#bo_vc {
    margin-top: 50px;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 10px;
}

#bo_vc h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.cmt_btn {
    text-align: right;
    margin-bottom: 20px;
}

#bo_vc_w {
    margin-top: 30px;
}

#bo_vc_w .btn_confirm {
    text-align: right;
    margin-top: 10px;
}

#bo_vc_w .btn_submit {
    background: #8B4513;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#bo_vc_w .btn_submit:hover {
    background: #A0522D;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .view_vote {
        margin-top: 30px;
        padding-top: 30px;
    }

    .vote_btn i {
        font-size: 20px;
    }

    .vote_btn span {
        font-size: 13px;
    }

    .vote_btn strong {
        font-size: 15px;
    }

    #bo_vc {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .view_vote {
        margin-top: 25px;
        padding-top: 25px;
        gap: 15px;
    }

    .vote_btn i {
        font-size: 18px;
    }

    .vote_btn span {
        font-size: 12px;
    }

    .vote_btn strong {
        font-size: 14px;
    }

    #bo_vc {
        padding: 15px;
    }
}

/* 글쓰기 페이지 */
#bo_w {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.write_header {
    margin-bottom: 40px;
}

.write_title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    letter-spacing: -1px;
}

/* 옵션 영역 */
.write_option {
    margin-bottom: 30px;
}

.option_list {
    display: flex;
    gap: 20px;
}

.option_item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option_item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.option_item label {
    font-size: 15px;
    color: #666;
    cursor: pointer;
}

/* 제목 입력 */
.bo_w_tit {
    margin-bottom: 30px;
}

.bo_w_tit label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin-bottom: 10px;
}

.bo_w_tit label.required:after {
    content: '*';
    color: #ff4a4a;
    margin-left: 4px;
}

.frm_input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.frm_input:focus {
    border-color: #8B4513;
    outline: none;
}

/* 내용 입력 */
.bo_w_con {
    margin-bottom: 30px;
}

.bo_w_con label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin-bottom: 10px;
}

.bo_w_con label.required:after {
    content: '*';
    color: #ff4a4a;
    margin-left: 4px;
}

#char_count_desc {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.wr_content {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 300px;
}

.wr_content textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: none;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    resize: vertical;
}

/* 파일 첨부 */
.bo_w_flie {
    margin-bottom: 15px;
}

.lb_file {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin-bottom: 10px;
}

.frm_file {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.file_del {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* 버튼 영역 */
.btn_confirm {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.btn_submit,
.btn_cancel {
    min-width: 160px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_submit {
    background: #8B4513;
    color: #fff;
    border: none;
}

.btn_submit:hover {
    background: #A0522D;
}

.btn_cancel {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    text-decoration: none;
    text-align: center;
}

.btn_cancel:hover {
    background: #f8f8f8;
    border-color: #999;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .write_title {
        font-size: 28px;
    }

    .frm_input {
        padding: 12px;
        font-size: 15px;
    }

    .btn_submit,
    .btn_cancel {
        min-width: 120px;
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    #bo_w {
        padding: 0 15px;
    }

    .write_title {
        font-size: 24px;
    }

    .option_list {
        gap: 15px;
    }

    .option_item label {
        font-size: 14px;
    }

    .frm_input {
        padding: 10px;
        font-size: 14px;
    }

    .btn_confirm {
        flex-direction: column;
    }

    .btn_submit,
    .btn_cancel {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* 게시물 헤더 */
#bo_v_title {padding:30px 0;border-bottom:2px solid #000}
.bo_v_cate {display:inline-block;margin-bottom:10px;color:#999;font-size:14px}
.bo_v_tit {display:block;font-size:36px;font-weight:bold;color:#000;letter-spacing:-1px}

/* 페이지 정보 */
#bo_v_info {padding:20px 0;border-bottom:1px solid #ddd}
.profile_info {position:relative;padding-left:60px}
.profile_info .pf_img {position:absolute;left:0;top:0;width:50px;height:50px;border-radius:50%}
.profile_info .pf_img img {width:100%;height:100%;border-radius:50%}
.profile_info .profile_info_ct {padding-top:5px}
.profile_info .profile_info_ct strong {margin-right:15px;color:#333}
.profile_info .if_date {color:#999}

/* 본문 영역 */
#bo_v_atc {min-height:200px;padding:30px; border-bottom: 1px solid #ccc;}
.view_content {padding:20px 0;line-height:1.8;font-size:18px;color:#333;letter-spacing:-1px;word-break:break-all}
.view_content img {max-width:100%;height:auto}

/* 첨부파일 */
#bo_v_file {margin:20px 0;border:1px solid #ddd;border-radius:5px}
#bo_v_file h2 {padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}
#bo_v_file ul {margin:0;padding:15px}
#bo_v_file li {padding:5px 0}
#bo_v_file a {color:#333}
#bo_v_file .bo_v_file_cnt {color:#999;font-size:12px}

/* 이전글 다음글 */
.bo_v_nb {margin:20px 0;border-top:1px solid #ddd;border-bottom:1px solid #ddd}
.bo_v_nb li {padding:15px}
.bo_v_nb li:first-child {border-bottom:1px solid #f1f1f1}
.nb_tit {display:inline-block;padding:5px 10px;color:#666}
.nb_date {float:right;color:#999}

/* 버튼 */
.btn_list_wrap {margin-top:40px;text-align:center}
.btn_list {display:inline-block;min-width:160px;padding:15px 40px;background:#8B4513;color:#fff;font-size:16px;font-weight:500;text-align:center;border-radius:50px;transition:all 0.3s ease}
.btn_list:hover {background:#A0522D}

/* 추천, 비추천 */
#bo_v_act {margin:30px 0;text-align:center}
.bo_v_act_gng {display:inline-block;margin:0 5px}
.bo_v_good, .bo_v_nogood {display:inline-block;padding:10px 20px;border:1px solid #ddd;border-radius:30px;color:#666}
.bo_v_good:hover, .bo_v_nogood:hover {background:#f5f5f5}

/* 반응형 */
@media screen and (max-width: 768px) {
    .bo_v_tit {font-size:24px}
    .view_content {font-size:16px;padding:15px 0}
    .btn_list {min-width:120px;padding:12px 30px;font-size:14px}
}

@media screen and (max-width: 480px) {
    .bo_v_tit {font-size:20px}
    .view_content {font-size:15px;padding:10px 0}
    .profile_info {padding-left:0}
    .profile_info .pf_img {display:none}
} 