@charset "utf-8";

/* ==========================================================================
   Gnuboard 5 Custom Premium Skin CSS (Mungyeong Korean Care Theme)
   ========================================================================== */

/* Font & Color Variables (Inherited from default.css, fallback provided) */
:root {
    --board-primary: #2B5F8C;
    --board-primary-light: #4A83B6;
    --board-primary-dark: #1E4364;
    --board-accent: #E67E22;
    --board-accent-light: #F39C12;
    --board-bg-light: #F8FAFC;
    --board-text-main: #2C3E50;
    --board-text-muted: #7F8C8D;
    --board-border: #E2E8F0;
    --board-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --board-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --board-radius: 8px;
    --board-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Board List (목록) */
#bo_list {
    position: relative;
    margin-bottom: 40px;
    font-family: var(--font-family, 'Pretendard', sans-serif);
    color: var(--board-text-main);
}

/* List Top Info and Buttons */
#bo_btn_top {
    margin: 15px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#bo_list_total {
    font-size: 0.95em;
    color: var(--board-text-muted);
}
#bo_list_total span {
    font-weight: 600;
    color: var(--board-primary);
}

/* Buttons Styling */
.btn_bo_user {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.btn_bo_user li {
    margin: 0;
}
.btn_bo_user .btn, .btn_bo_user a.btn_b01 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: var(--board-text-main);
    border: 1px solid var(--board-border);
    transition: var(--board-transition);
}
.btn_bo_user .btn:hover, .btn_bo_user a.btn_b01:hover {
    background: var(--board-bg-light);
    border-color: var(--board-primary-light);
    color: var(--board-primary);
}

/* Write Button Highlight */
.btn_bo_user a[title="글쓰기"], .btn_bo_user a.btn_b01[href*="write.php"] {
    background: var(--board-primary) !important;
    color: #fff !important;
    border-color: var(--board-primary) !important;
    box-shadow: var(--board-shadow-sm);
}
.btn_bo_user a[title="글쓰기"]:hover, .btn_bo_user a.btn_b01[href*="write.php"]:hover {
    background: var(--board-primary-dark) !important;
    border-color: var(--board-primary-dark) !important;
}

/* Administrative Option Button */
.btn_more_opt {
    position: relative;
}
.more_opt {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border: 1px solid var(--board-border);
    border-radius: var(--board-radius);
    box-shadow: var(--board-shadow-md);
    z-index: 100;
    min-width: 120px;
    padding: 6px 0;
}
.more_opt li {
    list-style: none;
    margin: 0;
}
.more_opt li button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    font-size: 0.85em;
    color: var(--board-text-main);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--board-transition);
}
.more_opt li button:hover {
    background: var(--board-bg-light);
    color: var(--board-primary);
}

/* Checkbox Modern Styling */
.selec_chk {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.chk_box {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.chk_box label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.chk_box label span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--board-border);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background: #fff;
    transition: var(--board-transition);
}
.chk_box input[type="checkbox"]:checked + label span {
    background: var(--board-primary);
    border-color: var(--board-primary);
}
.chk_box input[type="checkbox"]:checked + label span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Category Navigation */
#bo_cate {
    margin: 20px 0 25px;
}
#bo_cate h2 {
    display: none;
}
#bo_cate_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}
#bo_cate_ul li {
    margin: 0;
}
#bo_cate_ul a {
    display: block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--board-border);
    color: var(--board-text-muted);
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--board-transition);
}
#bo_cate_ul a:hover {
    color: var(--board-primary);
    border-color: var(--board-primary-light);
    background: var(--board-bg-light);
}
#bo_cate_ul #bo_cate_on {
    background: var(--board-primary);
    color: #fff;
    border-color: var(--board-primary);
    box-shadow: var(--board-shadow-sm);
    font-weight: 600;
}

/* Table Wrapper for Board List */
.tbl_wrap {
    background: #fff;
    border-radius: var(--board-radius);
    box-shadow: var(--board-shadow-sm);
    border: 1px solid var(--board-border);
    overflow: hidden;
    margin-bottom: 25px;
}
.tbl_head01 table {
    width: 100% !important;
    border-collapse: collapse;
    text-align: left;
}
.tbl_head01 th {
    background: var(--board-bg-light);
    padding: 16px 20px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--board-text-main);
    border-bottom: 2px solid var(--board-border);
    text-align: center;
}
.tbl_head01 th#th_num, .tbl_head01 th:first-child {
    text-align: center;
}
.tbl_head01 td {
    padding: 16px 20px;
    font-size: 0.95em;
    color: var(--board-text-main);
    border-bottom: 1px solid var(--board-border);
    vertical-align: middle;
    transition: var(--board-transition);
}
.tbl_head01 tbody tr {
    transition: var(--board-transition);
}
.tbl_head01 tbody tr:hover td {
    background: rgba(43, 95, 140, 0.03);
}
.tbl_head01 tbody tr:last-child td {
    border-bottom: none;
}

/* Table Column Widths and Alignments */
.td_num, .td_num2 {
    width: 70px;
    text-align: center;
    color: var(--board-text-muted);
}
.td_chk {
    width: 50px;
    text-align: center;
}
.td_name {
    width: 120px;
    text-align: center;
    color: var(--board-text-main);
}
.td_num, .td_datetime {
    width: 100px;
    text-align: center;
    color: var(--board-text-muted);
}
.td_subject {
    text-align: left;
}

/* Notice Icon & Row styling */
.bo_notice {
    background: rgba(230, 126, 34, 0.02) !important;
}
.bo_notice td {
    font-weight: 500;
}
.notice_icon {
    display: inline-block;
    background: var(--board-accent);
    color: #fff;
    font-size: 0.78em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: none;
}

/* Subject Title & Icons */
.bo_tit {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.bo_tit a {
    font-weight: 500;
    color: var(--board-text-main);
    text-decoration: none;
    line-height: 1.4;
}
.bo_tit a:hover {
    color: var(--board-primary);
    text-decoration: underline;
}
.bo_notice .bo_tit a {
    font-weight: 600;
    color: var(--board-primary-dark);
}
.cnt_cmt {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    background: var(--board-bg-light);
    color: var(--board-primary);
    border: 1px solid var(--board-primary-light);
    padding: 1px 6px;
    border-radius: 12px;
    margin-left: 4px;
}
.new_icon {
    display: inline-block;
    background: #2ECC71;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
}
.hot_icon {
    display: inline-block;
    background: #E74C3C;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
}
.bo_current {
    color: #E74C3C;
    font-weight: 600;
    font-size: 0.9em;
}
.empty_table {
    text-align: center !important;
    padding: 60px 20px !important;
    color: var(--board-text-muted) !important;
    font-size: 1.05em !important;
    background: #fff;
}

/* Action box below table */
.bo_fx {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

/* Pagination (페이지네이션) */
.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 30px 0;
}
.pg_page, .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.95em;
    font-weight: 500;
    transition: var(--board-transition);
}
.pg_page {
    background: #fff;
    border: 1px solid var(--board-border);
    color: var(--board-text-muted);
}
.pg_page:hover {
    border-color: var(--board-primary);
    color: var(--board-primary);
    background: var(--board-bg-light);
}
.pg_current {
    background: var(--board-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--board-shadow-sm);
}
.pg_control {
    font-size: 0.85em;
}

/* Search Bar (검색바) */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
.bo_sch_bg {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    width: 100%;
    height: 100%;
}
.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: var(--board-radius);
    box-shadow: var(--board-shadow-lg);
    border: 1px solid var(--board-border);
    overflow: hidden;
    z-index: 1001;
}
.bo_sch h3 {
    margin: 0;
    padding: 16px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 1px solid var(--board-border);
    background: var(--board-bg-light);
}
.bo_sch form {
    padding: 20px;
}
.bo_sch select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--board-border);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9em;
    background: #fff;
    cursor: pointer;
}
.bo_sch .sch_bar {
    display: flex;
    border: 1px solid var(--board-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.bo_sch .sch_input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    font-size: 0.9em;
    border: none;
}
.bo_sch .sch_btn {
    width: 50px;
    height: 44px;
    background: var(--board-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: var(--board-transition);
}
.bo_sch .sch_btn:hover {
    background: var(--board-primary-dark);
}
.bo_sch .bo_sch_cls {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.3em;
    color: var(--board-text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
}
.bo_sch .bo_sch_cls:hover {
    color: #000;
}


/* ==========================================================================
   2. Board View (상세보기)
   ========================================================================== */
#bo_v {
    background: #fff;
    border: 1px solid var(--board-border);
    border-radius: var(--board-radius);
    box-shadow: var(--board-shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
    font-family: var(--font-family, 'Pretendard', sans-serif);
}

/* Category Badge in View */
.bo_v_cate {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--board-primary);
    background: rgba(43, 95, 140, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Title in View */
#bo_v_title .bo_v_tit {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--board-text-main);
    line-height: 1.4;
    margin: 0 0 20px 0;
    word-break: break-all;
}

/* Writer & Hits info */
#bo_v_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--board-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: var(--board-text-muted);
    font-size: 0.9em;
}
#bo_v_info .profile_info {
    display: flex;
    align-items: center;
    gap: 10px;
}
#bo_v_info .pf_img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
#bo_v_info .profile_info_ct {
    display: flex;
    flex-direction: column;
}
#bo_v_info .sv_member, #bo_v_info .sv_guest {
    font-weight: 600;
    color: var(--board-text-main);
}
#bo_v_info .if_date {
    font-size: 0.85em;
}

/* File Attachments & Links in View */
#bo_v_file, #bo_v_link {
    margin: 15px 0;
}
#bo_v_file h2, #bo_v_link h2 {
    display: none;
}
#bo_v_file ul, #bo_v_link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#bo_v_file li, #bo_v_link li {
    background: var(--board-bg-light);
    border: 1px solid var(--board-border);
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9em;
}
#bo_v_file li i, #bo_v_link li i {
    color: var(--board-primary);
    font-size: 1.2em;
}
#bo_v_file a, #bo_v_link a {
    color: var(--board-text-main);
    font-weight: 500;
}
#bo_v_file a:hover, #bo_v_link a:hover {
    color: var(--board-primary);
    text-decoration: underline;
}
#bo_v_file .bo_v_file_cnt, #bo_v_link .bo_v_link_cnt {
    color: var(--board-text-muted);
    font-size: 0.85em;
}

/* Content Body */
#bo_v_atc {
    min-height: 250px;
    padding: 10px 0;
}
#bo_v_con {
    line-height: 1.8;
    color: var(--board-text-main);
    font-size: 1.05em;
    word-break: break-all;
}
#bo_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: var(--board-radius);
    margin: 15px 0;
}

/* View Bottom Action buttons */
#bo_v_top, #bo_v_bot {
    border-top: 1px solid var(--board-border);
    padding: 20px 0;
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}
.bo_v_com {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bo_v_com a, .bo_v_com button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--board-border);
    background: #fff;
    color: var(--board-text-main);
    cursor: pointer;
    transition: var(--board-transition);
}
.bo_v_com a:hover, .bo_v_com button:hover {
    background: var(--board-bg-light);
    border-color: var(--board-primary-light);
    color: var(--board-primary);
}
.bo_v_com a.btn_b02 {
    background: var(--board-primary) !important;
    border-color: var(--board-primary) !important;
    color: #fff !important;
}
.bo_v_com a.btn_b02:hover {
    background: var(--board-primary-dark) !important;
    border-color: var(--board-primary-dark) !important;
}


/* ==========================================================================
   3. Board Write (글쓰기)
   ========================================================================== */
#bo_w {
    background: #fff;
    border: 1px solid var(--board-border);
    border-radius: var(--board-radius);
    box-shadow: var(--board-shadow-sm);
    padding: 40px;
    margin-bottom: 40px;
    font-family: var(--font-family, 'Pretendard', sans-serif);
}
#bo_w h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--board-text-main);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--board-primary);
}

/* Write Form Element Container */
.write_div {
    margin-bottom: 20px;
    position: relative;
}

/* Text Inputs, Selects, Textareas Styling */
.frm_input, #bo_w select, #bo_w textarea {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--board-border);
    border-radius: 6px;
    font-size: 0.95em;
    color: var(--board-text-main);
    background: #fff;
    transition: var(--board-transition);
}
.frm_input:focus, #bo_w select:focus, #bo_w textarea:focus {
    border-color: var(--board-primary);
    box-shadow: 0 0 0 3px rgba(43, 95, 140, 0.1);
}
#bo_w textarea {
    height: 250px;
    padding: 16px;
    line-height: 1.6;
    resize: vertical;
}

/* Select Group */
.bo_w_select select {
    cursor: pointer;
}

/* Info Sub-group (Name, Password, Email) */
.bo_w_info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Options checkboxes */
.bo_v_option {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* File input field custom style */
.file_wr {
    position: relative;
    border: 1px dashed var(--board-border);
    border-radius: 6px;
    padding: 15px;
    background: var(--board-bg-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file_wr label {
    font-weight: 500;
    color: var(--board-text-main);
}
.file_del {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.85em;
}

/* Buttons Group in Write Form */
.btn_confirm {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.btn_confirm .btn_submit, .btn_confirm .btn_cancel {
    height: 48px;
    padding: 0 30px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--board-transition);
}
.btn_confirm .btn_submit {
    background: var(--board-primary);
    color: #fff;
    border: 1px solid var(--board-primary);
    box-shadow: var(--board-shadow-sm);
}
.btn_confirm .btn_submit:hover {
    background: var(--board-primary-dark);
    border-color: var(--board-primary-dark);
}
.btn_confirm .btn_cancel {
    background: #fff;
    color: var(--board-text-main);
    border: 1px solid var(--board-border);
}
.btn_confirm .btn_cancel:hover {
    background: var(--board-bg-light);
}


/* ==========================================================================
   4. Board Comments (댓글)
   ========================================================================== */
.cmt_btn {
    border: none;
    border-top: 1px solid var(--board-border);
    background: transparent;
    padding: 25px 0 15px;
    margin: 30px 0 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}
.cmt_btn span.total {
    color: var(--board-primary);
    font-weight: 700;
    margin-right: 4px;
}
.cmt_btn b {
    color: var(--board-text-main);
    font-weight: 700;
}

/* Comment Lists */
#bo_vc article {
    border-bottom: 1px solid var(--board-border);
    padding: 20px 0;
    position: relative;
}
#bo_vc article:last-of-type {
    border-bottom: none;
}
#bo_vc article .pf_img img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 12px;
}
#bo_vc article .cm_wrap {
    margin-left: 50px;
}
#bo_vc header {
    margin-bottom: 8px;
}
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {
    font-weight: 600;
    color: var(--board-text-main);
    font-size: 0.95em;
}
.bo_vc_hdinfo {
    font-size: 0.8em;
    color: var(--board-text-muted);
    margin-left: 8px;
}
#bo_vc .cmt_contents {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--board-text-main);
    word-break: break-all;
}

/* Comment Action Menu */
.bo_vl_opt {
    position: absolute;
    top: 20px;
    right: 0;
}
.bo_vc_act {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: #fff;
    border: 1px solid var(--board-border);
    border-radius: var(--board-radius);
    box-shadow: var(--board-shadow-md);
    z-index: 10;
    list-style: none;
    padding: 4px 0;
}
.bo_vc_act li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.8em;
    color: var(--board-text-main);
    transition: var(--board-transition);
}
.bo_vc_act li a:hover {
    background: var(--board-bg-light);
    color: var(--board-primary);
}

/* Comment Write Form */
.bo_vc_w {
    background: var(--board-bg-light);
    border: 1px solid var(--board-border);
    border-radius: var(--board-radius);
    padding: 20px;
    margin: 20px 0;
}
.bo_vc_w h2 {
    display: none;
}
.bo_vc_w textarea {
    height: 90px !important;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    resize: none;
    background: #fff;
}
.bo_vc_w_wr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.bo_vc_w_info {
    display: flex;
    gap: 8px;
    margin: 0;
}
.bo_vc_w_info .frm_input {
    width: 140px;
    height: 38px;
}
.bo_vc_w .btn_submit {
    height: 38px;
    padding: 0 20px;
    background: var(--board-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: var(--board-transition);
}
.bo_vc_w .btn_submit:hover {
    background: var(--board-primary-dark);
}


/* ==========================================================================
   5. Responsive / Mobile Styles (모바일 대응)
   ========================================================================== */
@media (max-width: 768px) {
    #bo_list {
        margin-bottom: 20px;
    }
    .tbl_head01 th {
        padding: 12px 10px;
        font-size: 0.9em;
    }
    .tbl_head01 td {
        padding: 12px 10px;
        font-size: 0.9em;
    }
    .td_num, .td_num2, .td_chk, .td_name, .td_datetime {
        width: auto;
    }
    
    /* Responsive details in table view for small devices */
    .tbl_head01 th.td_name, .tbl_head01 td.td_name,
    .tbl_head01 th.td_num, .tbl_head01 td.td_num,
    .tbl_head01 th.td_num2, .tbl_head01 td.td_num2 {
        display: none; /* Hide numbers and write name to make it clean on mobile */
    }
    .tbl_head01 th.td_datetime, .tbl_head01 td.td_datetime {
        width: 80px;
        text-align: right;
    }
    
    /* View details padding */
    #bo_v {
        padding: 20px 15px;
    }
    #bo_v_title .bo_v_tit {
        font-size: 1.4em;
    }
    #bo_v_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Write Form padding */
    #bo_w {
        padding: 20px 15px;
    }
}