/* Common Board Styles - Used across all board pages */

/* Board List Styles */
#bo_list {
    position: relative;
    margin-bottom: 30px;
}

/* Board Top Section */
#bo_btn_top {
    margin: 0 0 10px;
    text-align: left;
    zoom: 1;
}

#bo_btn_top:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

#bo_list_total {
    float: left;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
}

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

.btn_bo_user {
    float: right;
    margin: 0;
    padding: 0;
    list-style: none;
}

.btn_bo_user li {
    float: left;
    margin-left: 5px;
}

.btn_b03 {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid #ccc;
    background: #fafafa;
    color: #000;
    text-decoration: none;
    vertical-align: middle;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

.btn_b03:hover {
    background: #e9e9e9;
}

/* Search Box */
#bo_sch {
    position: relative;
    margin: 0 0 20px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f5f8f9;
    text-align: center;
    border-radius: 3px;
}

#bo_sch legend {
    position: absolute;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    text-indent: -9999em;
    overflow: hidden;
}

#bo_sch .search_box {
    display: inline-block;
    position: relative;
}

#bo_sch select {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #ccc;
    font-size: 13px;
    vertical-align: middle;
}

#bo_sch input[type="text"] {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #ccc;
    font-size: 13px;
    width: 200px;
    vertical-align: middle;
}

#bo_sch .btn_submit {
    height: 34px;
    padding: 0 15px;
    border: 1px solid #3a8afd;
    background: #3a8afd;
    color: #fff;
    font-size: 13px;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 3px;
}

#bo_sch .btn_submit:hover {
    background: #2878ea;
}

/* Board Table */
.tbl_head01 {
    margin: 0 0 10px;
}

.tbl_head01 table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-top: 2px solid #444;
}

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

.tbl_head01 thead th {
    padding: 10px 0;
    border-bottom: 1px solid #e5ecef;
    background: #f8f8f9;
    color: #383838;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
}

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

.tbl_head01 tbody tr.even {
    background: #fafafc;
}

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

.tbl_head01 .td_num {
    width: 60px;
}

.tbl_head01 .td_name {
    width: 100px;
}

.tbl_head01 .td_hit {
    width: 60px;
}

.tbl_head01 .td_datetime {
    width: 100px;
}

.tbl_head01 .td_subject {
    text-align: left;
    font-weight: 700;
}

.tbl_head01 .td_subject a {
    color: #000;
    text-decoration: none;
}

.tbl_head01 .td_subject a:hover {
    text-decoration: underline;
}

.bo_tit {
    display: inline-block;
}

.bo_tit .icon_file {
    margin-left: 3px;
    vertical-align: middle;
}

/* Popular post heart icon */
.bo_tit .fa-heart {
    color: #ff3061;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Attachment download icon */
.bo_tit .fa-download {
    color: #3a8afd;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.empty_table {
    padding: 50px 0 !important;
    text-align: center !important;
    color: #999 !important;
}

/* Pagination */
.pg_wrap {
    clear: both;
    margin: 20px 0;
    padding: 20px 0;
    text-align: center;
}

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

.pg_page {
    display: inline-block;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    vertical-align: middle;
    font-size: 13px;
    margin: 0 2px;
}

.pg_page:hover {
    background: #fafafc;
}

.pg_current {
    display: inline-block;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    color: #fff;
    background: #333;
    border: 1px solid #333;
    vertical-align: middle;
    font-size: 13px;
    font-weight: normal;
    margin: 0 2px;
}

.pg_start,
.pg_prev {
    margin-right: 5px;
}

.pg_next,
.pg_end {
    margin-left: 5px;
}

.sound_only {
    display: inline-block !important;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    border: 0 !important;
    overflow: hidden;
}

/* Board View (Detail) Styles */
.board_view {
    width: 100%;
    border-top: 2px solid #444;
    margin: 20px 0;
}

.board_view .view_header {
    padding: 20px 15px;
    border-bottom: 1px solid #e5ecef;
    background: #f8f8f9;
}

.board_view .view_header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
}

.board_view .view_info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.board_view .view_info span {
    display: flex;
    align-items: center;
}

.board_view .view_info span strong {
    margin-right: 5px;
}

.board_view .view_content {
    padding: 30px 15px;
    min-height: 300px;
    font-size: 14px;
    line-height: 1.8;
}

.board_view .view_attachment {
    padding: 15px;
    border-top: 1px solid #e5ecef;
    background: #fafafc;
}

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

.board_view .view_attachment a:hover {
    text-decoration: underline;
}

.view_buttons {
    margin: 20px 0;
    text-align: center;
}

.view_buttons .btn_list {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.view_buttons .btn_list:hover {
    background: #000;
}

/* Previous/Next Navigation */
.board_navigation {
    margin: 30px 0;
    border-top: 1px solid #e5ecef;
    border-bottom: 1px solid #e5ecef;
}

.board_navigation .nav_item {
    padding: 15px;
    border-bottom: 1px solid #e5ecef;
    display: flex;
    align-items: center;
}

.board_navigation .nav_item:last-child {
    border-bottom: none;
}

.board_navigation .nav_label {
    display: inline-block;
    width: 80px;
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.board_navigation .nav_item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
}

.board_navigation .nav_item a:hover {
    text-decoration: underline;
}

.board_navigation .nav_empty {
    color: #999;
    font-size: 14px;
}

/* Comment Section */
.comment_section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #444;
}

.comment_title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.comment_count {
    color: #3a8afd;
    font-weight: normal;
}

.comment_list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment_item {
    padding: 15px;
    border-bottom: 1px solid #e5ecef;
    background: #fafafc;
    margin-bottom: 10px;
}

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

.comment_author {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.comment_date {
    color: #999;
    font-size: 12px;
    flex: 1;
}

.comment_delete {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    font-size: 14px;
}

.comment_delete:hover {
    color: #ff3061;
}

.comment_content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.no_comments {
    text-align: center;
    padding: 30px;
    color: #999;
    background: #fafafc;
    border-radius: 3px;
}

/* Comment Form */
.comment_form_wrapper {
    margin-top: 30px;
    padding: 20px;
    background: #f5f8f9;
    border-radius: 3px;
}

.comment_form .form-group {
    margin-bottom: 15px;
}

.comment_form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.comment_form .form-actions {
    text-align: right;
}

.comment_form .btn_submit {
    padding: 8px 20px;
    background: #3a8afd;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.comment_form .btn_submit:hover {
    background: #2878ea;
}

.comment_login_notice {
    text-align: center;
    padding: 30px;
    background: #f5f8f9;
    border-radius: 3px;
}

.comment_login_notice a {
    color: #3a8afd;
    text-decoration: none;
    font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
    #bo_sch input[type="text"] {
        width: 120px;
    }

    .tbl_head01 .td_name,
    .tbl_head01 .td_hit,
    .tbl_head01 .td_datetime {
        display: none;
    }

    .tbl_head01 tbody .td_name,
    .tbl_head01 tbody .td_hit,
    .tbl_head01 tbody .td_datetime {
        display: none;
    }

    .pg_page {
        padding: 0 5px;
        font-size: 12px;
    }

    .pg_current {
        padding: 0 5px;
        font-size: 12px;
    }
}