/* ===================================================================
   MEGAX English Board Skin — gnuboard5
   Palette: #0F2350 (navy) / #1E3A6B / #e9edf5 (light)
   =================================================================== */

.mgx_board {
    --mgx: #0F2350;
    --mgx-2: #1E3A6B;
    --mgx-soft: #e9edf5;
    --cream: #f5f7fa;
    --sky: #dbe6f3;
    --line: #e1e6ed;
    --txt: #1c2638;
    --muted: #6a7585;
    --accent: #c9a227;
    font-family: "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
    color: var(--txt);
}
.mgx_board * { box-sizing: border-box; }
.mgx_board a { color: var(--mgx); text-decoration: none; }
.mgx_board a:hover { text-decoration: underline; }
.mgx_board h2, .mgx_board h3 { margin: 0; }
.sound_only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.mgx_board .btn,
.mgx_board .btn_b01,
.mgx_board .btn_admin {
    display: inline-flex; align-items: center; justify-content: center;
    height: 38px; min-width: 38px; padding: 0 14px;
    border: 1px solid var(--mgx); border-radius: 6px;
    background: #fff; color: var(--mgx); font-size: 13px; line-height: 1;
    cursor: pointer; transition: .15s ease;
}
.mgx_board .btn:hover,
.mgx_board .btn_b01:hover,
.mgx_board .btn_admin:hover { background: var(--mgx); color: #fff; text-decoration: none; }
.mgx_board .btn_submit {
    background: var(--mgx); color: #fff; border-color: var(--mgx);
    height: 46px; padding: 0 34px; font-size: 15px; font-weight: 600; letter-spacing: .3px;
}
.mgx_board .btn_submit:hover { background: var(--mgx-2); }
.mgx_board .btn_cancel { background: #fff; color: var(--muted); border-color: var(--line); height: 46px; padding: 0 26px; }
.mgx_board .btn_cancel:hover { background: #f3f3f3; color: var(--txt); }
.mgx_board .btn_b03 {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 1px solid var(--mgx); border-radius: 6px; background: #fff; color: var(--mgx); font-size: 12px;
}

/* ---------- LIST ---------- */
#bo_list { margin: 0 auto; }
#bo_cate { margin-bottom: 18px; }
#bo_cate h2 { font-size: 18px; color: var(--mgx); margin-bottom: 10px; }
#bo_cate_ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#bo_cate_ul li a {
    display: inline-block; padding: 7px 16px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 13px; color: var(--muted);
}
#bo_cate_ul li a:hover,
#bo_cate_ul li.bo_cate_on a {
    background: var(--mgx); color: #fff; border-color: var(--mgx); text-decoration: none;
}

#bo_btn_top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
#bo_list_total { font-size: 13px; color: var(--muted); }
#bo_list_total span { color: var(--mgx); font-weight: 700; }

.btn_bo_user { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; position: relative; }
.btn_bo_user li { position: relative; }
.more_opt {
    display: none; position: absolute; right: 0; top: 44px; z-index: 20;
    min-width: 160px; background: #fff; border: 1px solid var(--line);
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0,51,51,.12); padding: 6px; list-style: none; margin: 0;
}
.more_opt li button,
.more_opt li a {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px;
    background: none; border: 0; border-radius: 6px; font-size: 13px; color: var(--txt); cursor: pointer; text-align: left;
}
.more_opt li button:hover,
.more_opt li a:hover { background: var(--mgx-soft); text-decoration: none; }

.tbl_head01 { width: 100%; }
.tbl_head01 table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--mgx); }
.tbl_head01 caption { position: absolute; left: -9999px; }
.tbl_head01 thead th {
    padding: 14px 10px; background: #fff; font-size: 13px; font-weight: 700; color: var(--mgx);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl_head01 thead th a { color: var(--mgx); }
.tbl_head01 tbody td {
    padding: 14px 10px; font-size: 13.5px; border-bottom: 1px solid var(--line); color: var(--txt); vertical-align: middle;
}
.tbl_head01 tbody tr:hover td { background: #fafbfb; }
.tbl_head01 .td_num, .tbl_head01 .td_num2 { text-align: center; color: var(--muted); width: 70px; font-size: 12.5px; }
.tbl_head01 .td_name { text-align: center; width: 130px; color: var(--muted); }
.tbl_head01 .td_datetime { text-align: center; width: 110px; color: var(--muted); font-size: 12.5px; }
.tbl_head01 .td_subject { text-align: left; }
.td_subject .bo_tit a { color: var(--txt); font-weight: 500; }
.td_subject .bo_tit a:hover { color: var(--mgx); }
.bo_cate_link { display: inline-block; font-size: 11.5px; color: var(--mgx-2); margin-right: 4px; }
.bo_cate_link:hover { text-decoration: underline; }
.cnt_cmt { display: inline-block; margin-left: 4px; padding: 1px 7px; background: var(--mgx); color: #fff; border-radius: 999px; font-size: 11px; vertical-align: middle; }
.new_icon { display: inline-block; margin-left: 4px; padding: 1px 6px; background: var(--accent); color: #fff; border-radius: 3px; font-size: 10px; font-weight: 700; }
.notice_icon { display: inline-block; padding: 2px 9px; background: var(--mgx); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 700; }
.bo_current { color: var(--accent); font-size: 12px; font-weight: 700; }
tr.bo_notice td { background: var(--cream); }
tr.bo_notice .td_subject .bo_tit a { font-weight: 700; }
.empty_table { text-align: center !important; padding: 60px 0 !important; color: var(--muted); }

/* checkbox */
.chk_box label { position: relative; display: inline-block; cursor: pointer; }
.chk_box .selec_chk { position: absolute; opacity: 0; }
.chk_box label span {
    display: inline-block; width: 18px; height: 18px; border: 1px solid #b9c3c3;
    border-radius: 4px; vertical-align: middle; background: #fff;
}
.chk_box .selec_chk:checked + label span { background: var(--mgx); border-color: var(--mgx); }
.chk_box .selec_chk:checked + label span:after {
    content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* pagination */
.pg_wrap { margin: 26px 0; text-align: center; }
.pg { display: inline-flex; gap: 4px; }
.pg_page, .pg_current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line);
    border-radius: 6px; font-size: 13px; color: var(--muted);
}
.pg_page:hover { background: var(--mgx-soft); color: var(--mgx); text-decoration: none; }
.pg_current { background: var(--mgx); color: #fff; border-color: var(--mgx); font-weight: 700; }

.bo_fx { margin-top: 18px; display: flex; justify-content: flex-end; }

/* search overlay */
.bo_sch_wrap { display: none; position: fixed; inset: 0; z-index: 1000; }
.bo_sch_bg { position: absolute; inset: 0; background: rgba(0,51,51,.45); }
.bo_sch {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: min(440px, 90vw); background: #fff; border-radius: 12px; padding: 30px; z-index: 2;
}
.bo_sch h3 { font-size: 18px; color: var(--mgx); margin-bottom: 16px; }
.bo_sch select, .bo_sch .sch_input {
    width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 14px; margin-bottom: 10px;
}
.bo_sch .sch_bar { display: flex; gap: 8px; }
.bo_sch .sch_input { margin-bottom: 0; flex: 1; }
.bo_sch .sch_btn { width: 52px; border: 0; border-radius: 8px; background: var(--mgx); color: #fff; cursor: pointer; }
.bo_sch_cls { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; }

/* ---------- VIEW ---------- */
#bo_v { margin: 0 auto; }
#bo_v_title {
    font-size: 26px; line-height: 1.4; color: var(--mgx); font-weight: 700;
    padding-bottom: 18px; border-bottom: 2px solid var(--mgx); margin-bottom: 0;
}
.bo_v_cate { display: inline-block; font-size: 13px; color: var(--mgx-2); margin-right: 6px; vertical-align: middle; }

#bo_v_info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
#bo_v_info h2 { position: absolute; left: -9999px; }
.profile_info { display: flex; align-items: center; gap: 14px; }
.profile_info .pf_img img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.profile_info_ct { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.profile_info_ct strong { color: var(--txt); font-weight: 600; margin-right: 14px; font-size: 13px; }
.profile_info_ct strong a { color: var(--txt); }
.profile_info_ct .fa { color: var(--mgx-2); margin-right: 3px; }

#bo_v_atc { padding: 30px 0; }
#bo_v_atc_title { position: absolute; left: -9999px; }
#bo_v_share { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
#bo_v_img { margin-bottom: 20px; text-align: center; }
#bo_v_img img { max-width: 100%; height: auto; }
#bo_v_con { min-height: 200px; font-size: 15px; line-height: 1.85; color: var(--txt); word-break: break-word; }
#bo_v_con img { max-width: 100%; height: auto; }

#bo_v_act { text-align: center; margin-top: 30px; }
#bo_v_act .bo_v_act_gng { display: inline-block; margin: 0 6px; }
#bo_v_act .bo_v_good, #bo_v_act .bo_v_nogood {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
    border: 1px solid var(--mgx); border-radius: 8px; color: var(--mgx); font-size: 14px;
}
#bo_v_act .bo_v_good strong, #bo_v_act .bo_v_nogood strong { font-weight: 700; }
#bo_v_act a:hover { background: var(--mgx); color: #fff; text-decoration: none; }
#bo_v_act_good, #bo_v_act_nogood { display: block; margin-top: 8px; font-size: 12px; color: var(--accent); }

#bo_v_file, #bo_v_link { margin-top: 22px; padding: 18px 20px; background: var(--cream); border-radius: 10px; }
#bo_v_file h2, #bo_v_link h2 { font-size: 14px; color: var(--mgx); margin-bottom: 10px; }
#bo_v_file ul, #bo_v_link ul { list-style: none; margin: 0; padding: 0; }
#bo_v_file li, #bo_v_link li { padding: 8px 0; border-bottom: 1px dashed #cdd8e6; font-size: 13px; }
#bo_v_file li:last-child, #bo_v_link li:last-child { border-bottom: 0; }
#bo_v_file .fa, #bo_v_link .fa { color: var(--mgx-2); margin-right: 6px; }
.bo_v_file_cnt, .bo_v_link_cnt { font-size: 11.5px; color: var(--muted); }

.bo_v_nb { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.bo_v_nb li { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.bo_v_nb .nb_tit { min-width: 92px; color: var(--mgx); font-weight: 600; }
.bo_v_nb a { flex: 1; color: var(--txt); }
.bo_v_nb a:hover { color: var(--mgx); }
.bo_v_nb .nb_date { color: var(--muted); font-size: 12px; }

/* ---------- COMMENTS ---------- */
.cmt_btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 10px 18px;
    background: var(--mgx); color: #fff; border: 0; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.cmt_btn .total b { font-weight: 700; }
#bo_vc { margin-top: 22px; }
#bo_vc > h2 { font-size: 16px; color: var(--mgx); margin-bottom: 14px; }
#bo_vc article {
    display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line);
}
#bo_vc article .pf_img img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
#bo_vc .cm_wrap { flex: 1; }
#bo_vc header h2 { position: absolute; left: -9999px; }
#bo_vc header { font-size: 13px; color: var(--txt); font-weight: 600; margin-bottom: 6px; }
#bo_vc .bo_vc_hdinfo { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 8px; }
#bo_vc .cmt_contents p { font-size: 14px; line-height: 1.7; color: var(--txt); margin: 0; word-break: break-word; }
.bo_vl_opt { position: relative; }
.bo_vc_act {
    display: none; position: absolute; right: 0; top: 40px; z-index: 10; min-width: 120px;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,51,51,.12); list-style: none; margin: 0; padding: 6px;
}
.bo_vc_act li a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--txt); }
.bo_vc_act li a:hover { background: var(--mgx-soft); text-decoration: none; }
#bo_vc_empty { padding: 40px 0; text-align: center; color: var(--muted); }

#bo_vc_w { margin-top: 22px; padding: 20px; background: var(--mgx-soft); border-radius: 12px; }
#bo_vc_w h2 { font-size: 15px; color: var(--mgx); margin-bottom: 12px; }
#bo_vc_w textarea {
    width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 8px;
    padding: 14px; font-size: 14px; resize: vertical; background: #fff; font-family: inherit;
}
#bo_vc_w textarea:focus { outline: none; border-color: var(--mgx); }
.bo_vc_w_wr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.bo_vc_w_info { display: flex; gap: 8px; flex-wrap: wrap; }
.bo_vc_w_info .frm_input { height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 13px; }
.btn_confirm { display: flex; align-items: center; gap: 14px; }
.secret_cm label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
#bo_vc_w .btn_submit { border: 0; }

/* ---------- WRITE ---------- */
#bo_w { margin: 0 auto; }
#bo_w form { margin: 0 auto; }
.write_div { margin-bottom: 14px; }
#bo_w .frm_input, #bo_w select, #bo_w textarea {
    height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px;
    font-size: 14px; background: #fff; font-family: inherit; color: var(--txt);
}
#bo_w .frm_input:focus, #bo_w select:focus, #bo_w textarea:focus { outline: none; border-color: var(--mgx); }
#bo_w .full_input { width: 100%; }
#bo_w .half_input { width: calc(50% - 5px); margin-right: 6px; margin-bottom: 8px; }
#bo_w .bo_w_info { display: flex; flex-wrap: wrap; gap: 8px; }
#bo_w .bo_w_info .frm_input { flex: 1 1 200px; margin: 0; }
.bo_w_select select { width: 100%; }
.bo_v_option { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.bo_v_option li label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--txt); cursor: pointer; }
.wr_content textarea, #bo_w .wr_content textarea { width: 100%; min-height: 320px; padding: 16px; line-height: 1.7; }
#char_count_desc { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
#char_count_wrap { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.bo_w_link label, .bo_w_flie .lb_icon { display: inline-block; margin-bottom: 6px; color: var(--mgx-2); }
.file_wr { display: flex; align-items: center; gap: 10px; }
.frm_file { font-size: 13px; }
.file_del { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
#btn_autosave { margin-top: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; color: var(--muted); cursor: pointer; }
#autosave_pop { display: none; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.btn_confirm.write_div { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
    #bo_v_title { font-size: 21px; }
    #bo_v_con { font-size: 14.5px; }
    .tbl_head01 thead { display: none; }
    .tbl_head01 table, .tbl_head01 tbody, .tbl_head01 tr, .tbl_head01 td { display: block; width: 100%; }
    .tbl_head01 tbody tr { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .tbl_head01 tbody td { border: 0; padding: 2px 6px; }
    .tbl_head01 .td_subject .bo_tit a { font-size: 15px; }
    .tbl_head01 .td_num, .tbl_head01 .td_num2, .tbl_head01 .td_name, .tbl_head01 .td_datetime {
        display: inline-block; width: auto; text-align: left; margin-right: 12px;
    }
    #bo_w .half_input { width: 100%; margin-right: 0; }
    .bo_v_nb li { flex-wrap: wrap; }
    .bo_v_nb .nb_tit { min-width: auto; }
}


/* ===================================================================
   MEGAX English Legal Q&A ("Ask MEGAX") Board Skin — gnuboard5 (PC)
   Hero search + practice-area chips + Q&A list + answer-styled detail.
   Navy palette #0F2350. Write/comment screens reuse megax_en.
   =================================================================== */

.mgx_qna {
    --mgx: #0F2350;
    --mgx-2: #1E3A6B;
    --mgx-soft: #e9edf5;
    --line: #e1e6ed;
    --txt: #1c2638;
    --muted: #6a7585;
    --accent: #c9a227;
    --ok: #1f8a5b;
    font-family: "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
    color: var(--txt); margin: 0 auto;
}
.mgx_qna * { box-sizing: border-box; }
.mgx_qna a { text-decoration: none; color: inherit; }
.sound_only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* hero */
.qna_hero {
    text-align: center; padding: 44px 24px 40px; border-radius: 20px;
    background: linear-gradient(150deg, var(--mgx) 0%, var(--mgx-2) 100%); color: #fff; margin-bottom: 26px;
}
.qna_eyebrow { margin: 0; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.qna_title { margin: 8px 0 12px; font-size: 36px; font-weight: 800; letter-spacing: -.5px; }
.qna_lead { margin: 0 auto 26px; max-width: 600px; font-size: 14.5px; line-height: 1.7; color: #c3cee0; }
.qna_search { display: flex; max-width: 620px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.qna_search_input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 20px; font-size: 15px; color: var(--txt); outline: none; }
.qna_search_btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--mgx); color: #fff; padding: 0 26px; height: 48px; font-size: 15px; font-weight: 600; cursor: pointer; }
.qna_search_btn:hover { background: var(--mgx-2); }

/* 2-column layout */
.qna_layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.qna_main { min-width: 0; }

/* left category sidebar */
.qna_side { position: sticky; top: 20px; }
.qna_side_tit { font-size: 13px; font-weight: 700; color: var(--mgx); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 12px; border-bottom: 2px solid var(--mgx); margin: 0 0 8px; }
.qna_side_ul { list-style: none; margin: 0 0 18px; padding: 0; }
.qna_side_ul li a { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: .12s ease; }
.qna_side_ul li a:hover { background: var(--mgx-soft); color: var(--mgx); }
.qna_side_ul li.bo_cate_on a { background: var(--mgx); color: #fff; font-weight: 600; }
.qna_side_ask { width: 100%; justify-content: center; }

/* toolbar */
.qna_toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--mgx); margin-bottom: 8px; }
#bo_list_total { font-size: 13px; color: var(--muted); }
#bo_list_total span { color: var(--mgx); font-weight: 700; }
.btn_bo_user { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; }
.qna_ask_btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; background: var(--mgx); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; }
.qna_ask_btn:hover { background: var(--mgx-2); }
.qna_ask_btn.lg { height: 50px; padding: 0 26px; font-size: 15px; }
.qna_ask_btn.sm { height: 38px; padding: 0 14px; font-size: 13px; }
.btn_admin, .btn_b01 { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--mgx); border-radius: 8px; background: #fff; color: var(--mgx); cursor: pointer; }

/* Q&A list */
.qna_list { list-style: none; margin: 0; padding: 0; }
.qna_item { border-bottom: 1px solid var(--line); }
.qna_item.is_notice { background: var(--mgx-soft); border-radius: 10px; margin-bottom: 6px; border-bottom: 0; }
.qna_item_link { display: flex; align-items: flex-start; gap: 16px; padding: 22px 8px; transition: .15s ease; }
.qna_item_link:hover { background: #fafbfc; }
.qna_q { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--mgx); color: #fff; font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; }
.qna_item_body { flex: 1; min-width: 0; }
.qna_item_top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.qna_tag { padding: 3px 10px; background: var(--mgx-soft); color: var(--mgx); border-radius: 999px; font-size: 11px; font-weight: 700; }
.qna_answered { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: rgba(31,138,91,.1); color: var(--ok); border-radius: 999px; font-size: 11px; font-weight: 700; }
.qna_pending { padding: 3px 10px; background: #f3f4f6; color: var(--muted); border-radius: 999px; font-size: 11px; font-weight: 600; }
.new_icon { padding: 1px 6px; background: var(--accent); color: #fff; border-radius: 3px; font-size: 10px; font-weight: 700; }
.qna_q_tit { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--txt); }
.qna_item_link:hover .qna_q_tit { color: var(--mgx); }
.qna_excerpt { margin: 0 0 10px; font-size: 13.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qna_item_foot { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.qna_asker { font-weight: 600; color: var(--mgx-2); }
.qna_replies { color: var(--ok); font-weight: 600; }
.qna_arrow { align-self: center; color: var(--line); font-size: 22px; flex-shrink: 0; }
.qna_item_link:hover .qna_arrow { color: var(--mgx); }
.qna_empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.qna_empty .fa { font-size: 34px; color: var(--line); margin-bottom: 14px; }
.qna_empty p { margin: 0 0 18px; }

/* pagination */
.pg_wrap { margin: 28px 0; text-align: center; }
.pg { display: inline-flex; gap: 4px; }
.pg_page, .pg_current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--muted); }
.pg_page:hover { background: var(--mgx-soft); color: var(--mgx); }
.pg_current { background: var(--mgx); color: #fff; border-color: var(--mgx); font-weight: 700; }

/* bottom CTA strip */
.qna_cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 30px; padding: 24px 28px; background: var(--mgx-soft); border-radius: 14px; }
.qna_cta_txt strong { display: block; font-size: 16px; color: var(--mgx); }
.qna_cta_txt span { font-size: 13px; color: var(--muted); }

/* ============ DETAIL ============ */
.qna_v_top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.qna_back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mgx); font-weight: 600; }
.more_opt { display: none; position: absolute; right: 0; top: 48px; z-index: 20; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,35,80,.12); list-style: none; margin: 0; padding: 6px; }
.btn_bo_user li { position: relative; }
.more_opt li a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; font-size: 13px; color: var(--txt); }
.more_opt li a:hover { background: var(--mgx-soft); }

.qna_question { padding: 26px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 22px; }
.qna_q_head { display: flex; gap: 16px; margin-bottom: 18px; }
.qna_q_badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--mgx); color: #fff; font-size: 22px; font-weight: 800; font-family: Georgia, serif; display: flex; align-items: center; justify-content: center; }
.qna_q_meta { flex: 1; min-width: 0; }
.qna_q_title { margin: 6px 0 10px; font-size: 23px; font-weight: 700; line-height: 1.4; color: var(--txt); }
.qna_q_sub { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.qna_q_sub .fa { color: var(--mgx-2); margin-right: 3px; }
.qna_q_content { font-size: 15.5px; line-height: 1.85; color: var(--txt); word-break: break-word; }
.qna_q_content img { max-width: 100%; height: auto; }
#bo_v_img { margin-bottom: 16px; }
#bo_v_img img { max-width: 100%; height: auto; border-radius: 10px; }
.qna_files { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.qna_files a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--mgx-soft); border-radius: 8px; font-size: 13px; color: var(--mgx); }

/* answer area */
.qna_answer_wrap { margin-bottom: 22px; }
.qna_answer_head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--mgx); padding: 0 4px 14px; border-bottom: 2px solid var(--mgx); margin-bottom: 4px; }
.qna_answer_head .fa { color: var(--accent); }

/* recolor reused comment markup into "attorney answer cards" */
.mgx_qna .cmt_btn { display: none; }
.mgx_qna #bo_vc { margin: 0; }
.mgx_qna #bo_vc > h2 { position: absolute; left: -9999px; }
.mgx_qna #bo_vc article {
    display: flex; gap: 14px; padding: 20px; margin-top: 14px; border: 1px solid var(--line);
    border-left: 4px solid var(--accent); border-radius: 12px; background: #fff;
}
.mgx_qna #bo_vc .pf_img img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mgx_qna #bo_vc header { font-size: 14px; font-weight: 700; color: var(--mgx); margin-bottom: 6px; }
.mgx_qna #bo_vc header:before { content: "\2696  MEGAX Attorney \00B7 "; color: var(--accent); font-weight: 700; }
.mgx_qna #bo_vc header h2 { position: absolute; left: -9999px; }
.mgx_qna #bo_vc .bo_vc_hdinfo { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.mgx_qna #bo_vc .cmt_contents p { font-size: 14.5px; line-height: 1.75; color: var(--txt); margin: 0; }
.mgx_qna #bo_vc_empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; margin-top: 14px; }
.mgx_qna .bo_vl_opt { position: relative; }
.mgx_qna .btn_cm_opt { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.mgx_qna .bo_vc_act { display: none; position: absolute; right: 0; top: 40px; z-index: 10; min-width: 120px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,35,80,.12); list-style: none; margin: 0; padding: 6px; }
.mgx_qna .bo_vc_act li a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
/* answer-writing form (for attorneys/admins) */
.mgx_qna #bo_vc_w { margin-top: 20px; padding: 20px; background: var(--mgx-soft); border-radius: 12px; }
.mgx_qna #bo_vc_w h2 { font-size: 15px; color: var(--mgx); margin-bottom: 12px; }
.mgx_qna #bo_vc_w h2:before { content: "Write an answer"; }
.mgx_qna #bo_vc_w h2 { font-size: 0; }
.mgx_qna #bo_vc_w h2:before { font-size: 15px; }
.mgx_qna #bo_vc_w textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; background: #fff; font-family: inherit; resize: vertical; }
.mgx_qna .bo_vc_w_wr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mgx_qna .bo_vc_w_info { display: flex; gap: 8px; flex-wrap: wrap; }
.mgx_qna .bo_vc_w_info .frm_input { height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 13px; }
.mgx_qna .btn_confirm { display: flex; align-items: center; gap: 12px; }
.mgx_qna #bo_vc_w .btn_submit { border: 0; border-radius: 8px; background: var(--mgx); color: #fff; height: 44px; padding: 0 24px; font-size: 14px; font-weight: 600; cursor: pointer; }
.mgx_qna .secret_cm label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* prev/next */
.qna_nb { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.qna_nb li { border-bottom: 1px solid var(--line); }
.qna_nb a { display: block; padding: 16px 4px; font-size: 14.5px; color: var(--txt); }
.qna_nb a span { display: block; font-size: 12px; color: var(--mgx); font-weight: 600; margin-bottom: 4px; }
.qna_nb a:hover { color: var(--mgx); }

/* consult CTA */
.qna_consult { text-align: center; padding: 30px; background: linear-gradient(150deg, var(--mgx), var(--mgx-2)); border-radius: 16px; color: #fff; }
.qna_consult strong { display: block; font-size: 19px; margin-bottom: 8px; }
.qna_consult span { display: block; font-size: 13.5px; color: #c3cee0; margin-bottom: 20px; line-height: 1.7; max-width: 480px; margin-left: auto; margin-right: auto; }
.qna_consult .qna_ask_btn { background: #fff; color: var(--mgx); }
.qna_consult .qna_ask_btn:hover { background: var(--accent); color: #1c2638; }

/* responsive */
@media (max-width: 900px) {
    .qna_layout { grid-template-columns: 1fr; gap: 18px; }
    .qna_side { position: static; }
    .qna_side_ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
    .qna_side_ul li a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
    .qna_side_ul li a:hover, .qna_side_ul li.bo_cate_on a { border-color: var(--mgx); }
    .qna_side_ask { display: none; }
}
@media (max-width: 640px) {
    .qna_hero { padding: 30px 16px 26px; border-radius: 14px; margin-bottom: 20px; }
    .qna_title { font-size: 26px; }
    .qna_lead { font-size: 13.5px; margin-bottom: 18px; }
    .qna_search { flex-direction: column; border-radius: 16px; background: none; box-shadow: none; padding: 0; gap: 8px; }
    .qna_search_input { background: #fff; border-radius: 10px; height: 50px; }
    .qna_search_btn { border-radius: 10px; height: 50px; justify-content: center; }
    .qna_item_link { padding: 18px 4px; gap: 12px; }
    .qna_arrow { display: none; }
    .qna_cta, .qna_v_top { flex-direction: column; align-items: flex-start; }
}
/* ── 폭 안전장치: 그누보드 $width 가 100%/빈값이어도 본문 폭(1180px) 안에서 가운데 정렬 ── */
.mgx_qna { max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; }
#bo_list, #bo_v, #bo_w { max-width: 1180px; margin-left: auto; margin-right: auto; }

/* ── view/write 페이지 헤더 (list 와 톤 통일, 검색폼 없는 컴팩트) ── */
.mgx_qna .qna_hero--sub, .mgx_board .qna_hero--sub { padding: 28px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); text-align: center; }
.mgx_qna .qna_hero--sub .qna_title, .mgx_board .qna_hero--sub .qna_title { font-size: 26px; }
.mgx_qna_inner { display: block; }
.mgx_board .mgx_board_head.qna_hero--sub { background: transparent; }

/* ── 어두운 배경 버튼/아이콘 글씨 흰색 강제 (hover 포함) ── */
.mgx_qna .qna_ask_btn, .mgx_qna .qna_ask_btn *, .mgx_qna .qna_ask_btn:hover, .mgx_qna .qna_ask_btn:hover *,
.mgx_qna .qna_search_btn, .mgx_qna .qna_search_btn *, .mgx_qna .qna_search_btn:hover, .mgx_qna .qna_search_btn:hover *,
.mgx_qna .btn_submit, .mgx_qna .btn_submit *, .mgx_qna .btn_submit:hover, .mgx_qna .btn_submit:hover *,
.mgx_qna a[class*="ask"], .mgx_qna a[class*="ask"] *, .mgx_qna a[class*="ask"]:hover, .mgx_qna a[class*="ask"]:hover *,
.mgx_qna .btn_more_opt, .mgx_qna .btn_more_opt i, .mgx_qna .btn_more_opt:hover, .mgx_qna .btn_more_opt:hover i { color:#fff !important; }
.mgx_board .btn_submit, .mgx_board .btn_submit *, .mgx_board .btn_submit:hover { color:#fff !important; }

/* ── Q&A 답변 카드 (A) ── */
.mgx_qna .qna_answer_card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.mgx_qna .qna_answer_head { display: flex; align-items: center; gap: 12px; margin: 0; padding: 20px 24px; background: var(--mgx-soft); color: var(--mgx); font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--line); }
.mgx_qna .qna_answer_badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mgx); color: #fff; font-weight: 800; font-size: 17px; }
.mgx_qna .qna_answer_body { padding: 24px; font-size: 15px; line-height: 1.8; color: var(--txt); }

/* ── 관련 구성원 (하단 가로 배치) ── */
.mgx_qna .qna_relmem { margin-top: 40px; margin-bottom: 44px; }
.mgx_qna .qna_relmem_head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--mgx); padding-bottom: 12px; margin-bottom: 20px; }
.mgx_qna .qna_relmem_head h2 { margin: 0; font-size: 20px; color: var(--mgx); font-weight: 800; }
.mgx_qna .qna_relmem_more { font-size: 13px; color: #fff; background: var(--mgx); padding: 7px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.mgx_qna .qna_relmem_list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mgx_qna .qna_relmem_card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; transition: .15s; }
.mgx_qna .qna_relmem_card:hover { box-shadow: 0 12px 30px rgba(15,35,80,.12); border-color: transparent; transform: translateY(-2px); }
.mgx_qna .qna_relmem_photo { flex: 0 0 64px; width: 64px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--mgx-soft); }
.mgx_qna .qna_relmem_photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mgx_qna .qna_relmem_info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mgx_qna .qna_relmem_name { font-size: 16px; color: var(--mgx); font-weight: 800; }
.mgx_qna .qna_relmem_role { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 3px; }
.mgx_qna .qna_relmem_career { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ── write: 답변칸 + 관련구성원 체크 ── */
.mgx_board .mgx_w_label { display: block; font-size: 14px; font-weight: 700; color: var(--mgx-2); margin-bottom: 8px; }
.mgx_board .mgx_answer_ta { width: 100%; min-height: 160px; padding: 14px; line-height: 1.7; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.mgx_board .mgx_relmem_picker select { width: 100%; max-width: 420px; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 14px; }
.mgx_board .mgx_rel_tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mgx_board .mgx_rel_tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--mgx-soft); color: var(--mgx); border-radius: 999px; font-size: 13px; font-weight: 600; }
.mgx_board .mgx_rel_tag b { cursor: pointer; font-size: 16px; line-height: 1; color: var(--mgx-2); }
.mgx_board .mgx_rel_tag b:hover { color: var(--accent); }

/* ── List 버튼 (Ask 옆, 아웃라인 스타일) ── */
.mgx_qna .qna_list_btn { background: #fff !important; color: var(--mgx) !important; border: 1px solid var(--mgx) !important; }
.mgx_qna .qna_list_btn i { color: var(--mgx) !important; }
.mgx_qna .qna_list_btn:hover { background: var(--mgx-soft) !important; color: var(--mgx) !important; }
.mgx_qna .qna_list_btn:hover i { color: var(--mgx) !important; }
/* outline List button text must beat the a[class*="ask"] white-force rule (higher specificity) */
.mgx_qna a.qna_ask_btn.qna_list_btn, .mgx_qna a.qna_ask_btn.qna_list_btn *,
.mgx_qna a.qna_ask_btn.qna_list_btn:hover, .mgx_qna a.qna_ask_btn.qna_list_btn:hover * { color: var(--mgx) !important; }

/* ── 상단 고정헤더와 본문 간격 (모든 게시판 list/view/write 공통) ── */
.mgx_qna { padding-top: 40px; }
@media (max-width: 768px){ .mgx_qna { padding-top: 24px; } }

/* [MEGA X] Mobile editor & post-body overflow guard ----------------------- */
#bo_w .wr_content{max-width:100%}
#bo_w .wr_content iframe,#bo_w .wr_content textarea,#bo_w .smarteditor2,#bo_w .se2_inputarea{max-width:100% !important;box-sizing:border-box}
@media (max-width:768px){
  #bo_w{overflow-x:hidden}
  #bo_w .wr_content{overflow-x:auto;-webkit-overflow-scrolling:touch}
  #bo_w .wr_content iframe,#bo_w .smarteditor2 iframe{width:100% !important}
  #bo_w .smarteditor2,#bo_w .smarteditor2 *{max-width:100% !important}
  #bo_w textarea{width:100% !important;box-sizing:border-box}
  #bo_v{overflow-x:hidden}
  #bo_v_con img,#bo_v_con iframe,#bo_v_con video{max-width:100% !important;height:auto}
  #bo_v_con table{display:block;width:100% !important;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
/* [MEGA X] end guard ------------------------------------------------------- */
