@charset "UTF-8";
/* ===================================================================
   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); }
.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; }
}
/* ── 폭 안전장치: 그누보드 $width 가 100%/빈값이어도 본문 폭(1180px) 안에서 가운데 정렬 ── */
.mgx_board { width:auto !important; max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; box-sizing:border-box; }
#bo_list, #bo_v, #bo_w, #bo_gall { width:auto !important; max-width: 1180px; margin-left: auto; margin-right: auto; box-sizing:border-box; }
#bo_list img, #bo_v img, #bo_w img { max-width:100%; height:auto; }

/* ── view/write 페이지 헤더 ── */
.mgx_board .mgx_board_head { text-align: center; padding: 28px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.mgx_board .mgx_board_head .mgx_board_title { font-size: 24px; color: var(--mgx); margin: 0; font-weight: 800; }

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

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

/* ═══════════ Case Results (success) ═══════════ */
.mgx_success .success_head{text-align:center;padding:28px 0 22px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.mgx_success .success_eyebrow{color:var(--accent);font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;margin:0 0 4px}
.mgx_success .mgx_board_title{font-size:24px;color:var(--mgx);margin:0;font-weight:800}

/* view */
.mgx_success .cs_crumb{font-size:12.5px;color:var(--muted);margin-bottom:18px}
.mgx_success .cs_crumb a{color:var(--muted);text-decoration:none}
.mgx_success .cs_crumb span{color:var(--mgx)}
.mgx_success .cs_tags{display:flex;gap:8px;margin-bottom:14px}
.mgx_success .cs_tag{display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em}
.mgx_success .cs_tag--area{background:var(--mgx);color:#fff}
.mgx_success .cs_tag--out{background:#a23b3b;color:#fff}
.mgx_success .cs_title{font-size:30px;line-height:1.25;color:var(--mgx);font-weight:800;margin:0 0 10px}
.mgx_success .cs_meta{font-size:13px;color:var(--muted);margin:0 0 16px}
.mgx_success .cs_rule{border:0;border-top:1px solid var(--line);margin:0 0 26px}
.mgx_success .cs_summary{background:var(--mgx-soft);border-radius:14px;padding:24px 26px;margin-bottom:30px}
.mgx_success .cs_summary h2{margin:0 0 10px;font-size:20px;color:var(--mgx);font-weight:800}
.mgx_success .cs_summary p{margin:0;font-size:15px;line-height:1.75;color:var(--txt)}
.mgx_success .cs_facts{display:flex !important;flex-wrap:wrap;gap:14px;margin-bottom:34px}
.mgx_success .cs_fact{flex:1 1 0;min-width:150px;border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:#fff}
.mgx_success .cs_fact span{display:block;font-size:11.5px;color:var(--muted);margin-bottom:5px}
.mgx_success .cs_fact strong{font-size:15px;color:var(--mgx);font-weight:800}
.mgx_success .cs_block{margin-bottom:28px}
.mgx_success .cs_block_h{font-size:20px;color:var(--mgx);font-weight:800;margin:0 0 12px;padding-bottom:8px;border-bottom:2px solid var(--accent);display:inline-block}
.mgx_success .cs_num{color:var(--accent)}
.mgx_success .cs_block p{font-size:15px;line-height:1.8;color:var(--txt);margin:0}
.mgx_success #bo_v_con{font-size:15px;line-height:1.8;color:var(--txt);margin:10px 0 28px}
.mgx_success .cs_note{background:#fbf6ea;border:1px solid #ecdcb6;border-radius:10px;padding:16px 20px;font-size:13.5px;color:#6b5a2e;margin:30px 0 10px}
.mgx_success .cs_note strong{color:#a8842c;margin-right:6px}

/* Attorneys Involved */
.mgx_success .cs_attorneys{margin-top:40px;margin-bottom:44px}
.mgx_success .cs_att_head{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--mgx);padding-bottom:12px;margin-bottom:8px}
.mgx_success .cs_att_head h2{margin:0;font-size:20px;color:var(--mgx);font-weight:800}
.mgx_success .cs_att_more{font-size:13px;color:#fff;background:var(--mgx);padding:7px 16px;border-radius:8px;text-decoration:none;font-weight:600}
.mgx_success .cs_att_sub{font-size:13px;color:var(--muted);margin:0 0 20px}
.mgx_success .cs_att_list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.mgx_success .cs_att_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_success .cs_att_card:hover{box-shadow:0 12px 30px rgba(15,35,80,.12);border-color:transparent;transform:translateY(-2px)}
.mgx_success .cs_att_photo{flex:0 0 64px;width:64px;height:80px;border-radius:8px;overflow:hidden;background:var(--mgx-soft)}
.mgx_success .cs_att_photo img{width:100%;height:100%;object-fit:cover;object-position:top center}
.mgx_success .cs_att_info{display:flex;flex-direction:column;gap:2px;min-width:0}
.mgx_success .cs_att_info strong{font-size:16px;color:var(--mgx);font-weight:800}
.mgx_success .cs_att_role{font-size:12.5px;color:var(--accent);font-weight:600;margin-bottom:3px}
.mgx_success .cs_att_career{font-size:12px;color:var(--muted);line-height:1.4}

/* write */
.mgx_board .cs_w_section{margin:22px 0;padding-top:20px;border-top:1px solid var(--line)}
.mgx_board .cs_w_h{font-size:16px;color:var(--mgx);font-weight:800;margin:0 0 12px}
.mgx_board .cs_w_ta{width:100%;min-height:90px;padding:12px;line-height:1.7;border:1px solid var(--line);border-radius:8px;font-size:14px;margin-bottom:10px}
.mgx_board .cs_w_lbl{display:block;font-size:13px;font-weight:700;color:var(--mgx-2);margin:8px 0 6px}
.mgx_board .cs_w_grid4{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.mgx_board .cs_w_grid4 label{display:flex;flex-direction:column;font-size:12.5px;font-weight:700;color:var(--mgx-2);gap:6px}
.mgx_board .cs_w_grid4 input{font-weight:400}
.mgx_board .cs_w_tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.mgx_board .cs_w_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 .cs_w_tag b{cursor:pointer;font-size:16px;line-height:1;color:var(--mgx-2)}
.mgx_board #cs_att_select{max-width:420px;height:44px}

@media(max-width:768px){
  .mgx_success .cs_fact{flex:1 1 40%;min-width:140px}
  .mgx_success .cs_title{font-size:23px}
  .mgx_board .cs_w_grid4{grid-template-columns:1fr}
}

/* Success Case view 하단 버튼 (List / Write) */
.mgx_success .cs_v_btns{display:flex;gap:10px;justify-content:center;margin:30px 0 10px}
.mgx_success .cs_btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:700;text-decoration:none;border:1px solid var(--mgx)}
.mgx_success .cs_btn--list{background:var(--mgx);color:#fff !important}
.mgx_success .cs_btn--list:hover{background:#1E3A6B}
.mgx_success .cs_btn--write{background:#fff;color:var(--mgx) !important}
.mgx_success .cs_btn--write:hover{background:var(--mgx-soft)}
.mgx_success .cs_btn--edit{background:#fff;color:var(--mgx) !important}
.mgx_success .cs_btn--edit:hover{background:var(--mgx-soft)}
.mgx_success .cs_btn--del{background:#fff;color:#c0392b !important;border-color:#e0b4ae}
.mgx_success .cs_btn--del:hover{background:#fbeae7}

/* [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 ------------------------------------------------------- */

/* [MEGA X] rich-text (SmartEditor2) output in summary & sections */
.mgx_success .cs_summary .cs_rt{font-size:15px;line-height:1.75;color:var(--txt)}
.mgx_success .cs_block .cs_rt{font-size:15px;line-height:1.8;color:var(--txt)}
.mgx_success .cs_rt p{margin:0 0 10px}
.mgx_success .cs_rt p:last-child{margin-bottom:0}
.mgx_success .cs_rt img{max-width:100%;height:auto}
.mgx_success .cs_rt table{max-width:100%}


/* === MEGA X mobile safety (auto) === */
.tbl_head01,.tbl_wrap{overflow-x:auto !important;-webkit-overflow-scrolling:touch}
@media(max-width:640px){.tbl_head01 table{min-width:0}}
@media(max-width:768px){#bo_v_con pre{white-space:pre-wrap;word-break:break-word}}


/* Mobile: success list as stacked cards (avoid cramped multi-column table) */
@media (max-width:640px){
  #bo_list .tbl_head01 thead{display:none}
  #bo_list .tbl_head01 table,
  #bo_list .tbl_head01 tbody,
  #bo_list .tbl_head01 tr,
  #bo_list .tbl_head01 td{display:block;width:auto}
  #bo_list .tbl_head01 tr{border:1px solid #e1e6ed;border-radius:14px;padding:12px 14px;margin-bottom:10px;background:#fff}
  #bo_list .tbl_head01 td{border:0;padding:2px 0;text-align:left}
  #bo_list .tbl_head01 td.td_subject{font-size:16px;font-weight:600;color:#1c2638}
  #bo_list .tbl_head01 td.td_num2{font-size:12px;color:#9aa3b0}
  #bo_list .tbl_head01 td.td_chk,#bo_list .tbl_head01 td.td_mng{display:none}
  #bo_list .tbl_head01 td.td_name,
  #bo_list .tbl_head01 td.td_num,
  #bo_list .tbl_head01 td.td_datetime{display:inline-block;font-size:12px;color:#6a7585;margin-right:12px}
}


/* MEGA X board hero height : 게시판 서브비주얼 콤팩트 (콘텐츠 상단 노출) */
.mgx_success ~ * , .bo_style .sub_V{ }
.bo_style .sub_V{ height:300px !important; margin-bottom:36px !important; }
.bo_style .sub_V .sub-Tit{ bottom:52px !important; }
.bo_style .sub_V .location{ margin-bottom:12px !important; }
.bo_style .sub_V .sub-Tit h1{ font-size:42px !important; margin-bottom:6px; }
@media (max-width:1024px){
  .bo_style .sub_V{ height:220px !important; margin-bottom:24px !important; }
  .bo_style .sub_V .sub-Tit{ bottom:34px !important; }
  .bo_style .sub_V .sub-Tit h1{ font-size:30px !important; }
}


/* 목록 제목 셀 : 카테고리칩 + 결과배지 + 제목 한 줄 (2026-07-11) */
#bo_list .td_subject .cs_row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;line-height:1;}
#bo_list .td_subject .cs_cate{display:inline-flex;align-items:center;height:28px;padding:0 15px;border-radius:999px;background:#0F2350;color:#fff !important;font-size:14px;font-weight:700;line-height:1;white-space:nowrap;text-decoration:none;}
#bo_list .td_subject .cs_cate:hover{background:#1E3A6B;color:#fff !important;}
#bo_list .td_subject .cs_out{display:inline-flex;align-items:center;height:28px;padding:0 15px;border-radius:999px;background:#a23b3b;color:#fff !important;font-size:14px;font-weight:700;line-height:1;white-space:nowrap;}
#bo_list .td_subject .cs_subj{font-size:17px;font-weight:600;color:#1c2638 !important;text-decoration:none;}
#bo_list .td_subject .cs_subj:hover{color:#0F2350 !important;}
@media (max-width:768px){
  #bo_list .td_subject .cs_cate,#bo_list .td_subject .cs_out{height:24px;font-size:12px;padding:0 12px;}
  #bo_list .td_subject .cs_subj{font-size:15px;}
}

/* ================= [MEGA X] 후기(th_review) 전용 (2026-07-11) ================= */
/* 목록 카드 그리드 */
#bo_list .rv_grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:22px;margin:6px 0 10px;list-style:none;padding:0;}
#bo_list .rv_card{list-style:none;}
#bo_list .rv_card_in{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid #eaecf1;border-radius:16px;padding:28px 26px;box-shadow:0 6px 20px rgba(15,35,80,.05);transition:.25s;text-decoration:none;box-sizing:border-box;}
#bo_list .rv_card_in:hover{box-shadow:0 12px 28px rgba(15,35,80,.12);transform:translateY(-3px);border-color:#dfe4ee;}
#bo_list .rv_stars{color:#e8b923;font-size:0;margin-bottom:12px;}
#bo_list .rv_stars i{display:inline-block;width:16px;height:16px;margin-right:2px;background:#dfe3ea;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3 6.5 7 .6-5.3 4.6L18.5 21 12 17.3 5.5 21l1.8-7.3L2 9.1l7-.6z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3 6.5 7 .6-5.3 4.6L18.5 21 12 17.3 5.5 21l1.8-7.3L2 9.1l7-.6z'/></svg>") center/contain no-repeat;}
#bo_list .rv_stars i.on{background:#e8b923;}
#bo_list .rv_quote{flex:1;font-size:16px;line-height:1.75;color:#333;position:relative;padding-top:26px;margin:0 0 20px;word-break:keep-all;}
#bo_list .rv_quote:before{content:'\201C';position:absolute;top:-8px;left:-2px;font-size:52px;color:#27bffe;font-family:Georgia,serif;line-height:1;}
#bo_list .rv_meta{display:flex;align-items:center;gap:10px;padding-top:16px;border-top:1px solid #eef1f5;}
#bo_list .rv_cate{display:inline-flex;align-items:center;height:24px;padding:0 12px;border-radius:999px;background:#0F2350;color:#fff;font-size:12px;font-weight:700;}
#bo_list .rv_client{font-size:14px;font-weight:700;color:#0F2350;}
#bo_list .rv_empty{grid-column:1/-1;text-align:center;color:#8a93a3;padding:60px 0;}
/* 상세 */
.mgx_success .rv_v_stars{color:#e8b923;font-size:22px;letter-spacing:2px;margin-bottom:10px;}
.mgx_success .rv_v_stars i{font-style:normal;}
.mgx_success .rv_v_stars i:before{content:'\2606';}
.mgx_success .rv_v_stars i.on:before{content:'\2605';color:#e8b923;}
.mgx_success .rv_v_body{background:#f7f9fc;border-radius:16px;padding:34px 32px;margin:6px 0 26px;}
.mgx_success .rv_v_quote{font-size:17px;line-height:1.9;color:#2a3346;position:relative;}
.mgx_success .rv_v_client{margin:18px 0 0;text-align:right;font-weight:700;color:#0F2350;font-size:15px;}
@media (max-width:768px){ #bo_list .rv_grid{grid-template-columns:1fr;} .mgx_success .rv_v_body{padding:24px 20px;} }

/* [MEGA X] 담당 변호사 표시 (별점 대체) ── list */
#bo_list .rv_meta{flex-wrap:wrap;}
#bo_list .rv_lawyers{display:inline-flex;flex-wrap:wrap;gap:6px;width:100%;margin:0 0 2px;}
#bo_list .rv_lw{display:inline-flex;align-items:center;height:24px;padding:0 11px;border-radius:999px;background:#eef1f7;color:#0F2350;font-size:12px;font-weight:700;letter-spacing:-.2px;}
/* [MEGA X] 담당 변호사 표시 ── view */
.mgx_board .rv_v_lawyers{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 6px;}
.mgx_board .rv_v_lw_lbl{font-size:13px;font-weight:700;color:#8b93a1;}
.mgx_board .rv_v_lawyers .rv_lw{display:inline-flex;align-items:center;height:26px;padding:0 13px;border-radius:999px;background:#0F2350;color:#fff;font-size:13px;font-weight:700;}

/* [MEGA X] 글쓰기: 분류 + 사건결과 2열 */
.mgx_board .mgx_w_row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.mgx_board .mgx_w_col{flex:1;min-width:200px;display:flex;flex-direction:column;gap:6px;}
.mgx_board .mgx_w_lbl{font-size:13px;font-weight:700;color:#556174;}
.mgx_board .mgx_w_col .frm_input,.mgx_board .mgx_w_col select{width:100%;box-sizing:border-box;}
/* [MEGA X] 후기 리스트 사건결과 뱃지 */
#bo_list .rv_out{display:inline-flex;align-items:center;height:24px;padding:0 12px;border-radius:999px;background:#a23b3b;color:#fff;font-size:12px;font-weight:700;}
.mgx_board .cs_tag--out{background:#a23b3b;color:#fff;}

/* [MEGA X] 게시판 제목 헤더 - 글읽기/글쓰기(mgx_success 미포함)에서도 적용 */
.mgx_board .mgx_board_head .success_eyebrow{color:var(--accent,#c9a227);font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;margin:0 0 4px;}
/* [MEGA X] 후기목록 의뢰인 라벨 */
.rv_client .rv_client_lbl{display:inline-block;font-size:11px;font-weight:700;color:#fff;background:#0F2350;border-radius:999px;padding:2px 8px;margin-right:5px;vertical-align:middle;}
/* [MEGA X] 후기목록 메타 2줄: 위=분류/결과, 아래=의뢰인+담당변호사 */
.rv_meta_top{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px;}
.rv_meta_bot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
/* [MEGA X] 담당 변호사 라벨(후기목록) */
.rv_meta_bot .rv_lawyers{display:inline-flex;align-items:center;gap:6px;}
.rv_meta_bot .rv_lw_lbl{font-size:12px;font-weight:700;color:#8b93a1;}
/* [MEGA X] 후기목록 메타 강제 세로 정렬 (기업=윗줄 / 의뢰인·담당변호사=아랫줄) */
.rv_card .rv_meta{display:flex !important;flex-direction:column !important;align-items:flex-start !important;gap:8px !important;}
.rv_card .rv_meta_top{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0;}
.rv_card .rv_meta_bot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0;}


/* ===== [MEGA X] 성공사례/의뢰인후기 카드 그리드 (한 줄 5개) ===== */
.cs_grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;list-style:none;margin:10px 0 0;padding:0;}
.cs_card{background:#fff;border:1px solid #e6e9f0;border-radius:14px;overflow:hidden;transition:box-shadow .2s,border-color .2s,transform .2s;}
.cs_card:hover{border-color:#0F2350;box-shadow:0 14px 30px rgba(15,35,80,.12);transform:translateY(-3px);}
.cs_card_in{display:flex;flex-direction:column;height:100%;padding:20px 18px;text-decoration:none;color:inherit;}
.cs_head{margin-bottom:14px;}
.cs_cate{display:inline-block;color:#2f5bd0;font-size:13px;font-weight:800;margin-bottom:8px;}
.cs_title{font-size:17px;font-weight:800;color:#161b26;line-height:1.4;margin:0 0 8px;word-break:keep-all;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.cs_sub,.rv_quote{font-size:13.5px;color:#7a828f;line-height:1.5;margin:0;word-break:keep-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.cs_thumb{position:relative;margin:0 0 16px;border-radius:10px;overflow:hidden;background:#f2f4f8;aspect-ratio:4/5;}
.cs_thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.cs_thumb .cs_noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#c3cbd8;font-size:44px;}
.cs_out{position:absolute;left:10px;top:10px;background:#9a1b1b;color:#fff;font-size:12px;font-weight:800;padding:5px 10px;border-radius:6px;box-shadow:0 3px 8px rgba(0,0,0,.2);}
.cs_out_inline{position:static;display:inline-block;}
.rv_out_row{margin:0 0 12px;}
.rv_client_row{font-size:13px;color:#4a5464;margin:2px 0 14px;font-weight:600;}
.rv_client_lbl{display:inline-block;background:#eef1f7;color:#0F2350;font-size:11px;font-weight:800;padding:2px 8px;border-radius:5px;margin-right:6px;}
.cs_att{display:flex;flex-wrap:wrap;gap:14px 10px;margin-top:auto;padding-top:14px;border-top:1px solid #eef1f5;justify-content:center;}
.cs_att_i{display:flex;flex-direction:column;align-items:center;gap:6px;width:64px;text-align:center;}
.cs_att_ph{width:52px;height:52px;border-radius:50%;overflow:hidden;background:#eef1f7;border:2px solid #fff;box-shadow:0 2px 8px rgba(15,35,80,.14);display:flex;align-items:center;justify-content:center;}
.cs_att_ph img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;}
.cs_att_ph i{color:#9aa4b4;font-size:24px;}
.cs_att_nm{font-size:12.5px;font-weight:700;color:#2b3444;line-height:1.2;word-break:keep-all;}
.cs_empty{grid-column:1 / -1;text-align:center;color:#8b93a1;padding:60px 0;}
@media (max-width:1200px){ .cs_grid{grid-template-columns:repeat(4,1fr);} }
@media (max-width:980px){ .cs_grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:680px){ .cs_grid{grid-template-columns:repeat(2,1fr);gap:12px;} .cs_card_in{padding:14px 12px;} .cs_title{font-size:15px;} .cs_att_i{width:56px;} .cs_att_ph{width:44px;height:44px;} }
@media (max-width:420px){ .cs_att_nm{font-size:11px;} }


/* ===== [MEGA X] 5열 컴팩트 보정 + 그리드 오버플로 방지 ===== */
.cs_grid{gap:16px;}
.cs_grid>*{min-width:0;}
.cs_card img{max-width:100%;}
.cs_card_in{padding:16px 14px;}
.cs_head{margin-bottom:12px;}
.cs_cate{font-size:12.5px;margin-bottom:6px;}
.cs_title{font-size:15.5px;-webkit-line-clamp:2;}
.cs_sub,.rv_quote{font-size:13px;-webkit-line-clamp:2;}
.cs_thumb{aspect-ratio:3/4;margin-bottom:14px;}
.cs_out{font-size:11px;padding:4px 9px;left:9px;top:9px;}
.cs_att{gap:12px 8px;padding-top:12px;}
.cs_att_i{width:56px;}
.cs_att_ph{width:46px;height:46px;}
.cs_att_nm{font-size:11.5px;}


/* ===== [MEGA X] 후기 5열 확정 — 기존 #bo_list .rv_grid / .rv_quote 덮어쓰기 ===== */
#bo_list .cs_grid,#bo_list .rv_grid{grid-template-columns:repeat(5,1fr) !important;gap:16px !important;}
#bo_list .cs_grid>*,#bo_list .rv_grid>*{min-width:0 !important;}
#bo_list .rv_quote{flex:none !important;padding-top:0 !important;margin:0 !important;font-size:13px !important;line-height:1.5 !important;color:#7a828f !important;}
#bo_list .rv_quote:before{display:none !important;content:'' !important;}
#bo_list .cs_card_in{padding:16px 14px !important;}
@media (max-width:1200px){ #bo_list .cs_grid,#bo_list .rv_grid{grid-template-columns:repeat(4,1fr) !important;} }
@media (max-width:980px){ #bo_list .cs_grid,#bo_list .rv_grid{grid-template-columns:repeat(3,1fr) !important;} }
@media (max-width:680px){ #bo_list .cs_grid,#bo_list .rv_grid{grid-template-columns:repeat(2,1fr) !important;} }

/* ===== [MEGA X] 후기 카드 호버 움직임 강화 ===== */
.cs_card{transition:box-shadow .25s ease, border-color .25s ease, transform .25s ease;}
.cs_card:hover{border-color:#0F2350;box-shadow:0 18px 38px rgba(15,35,80,.16);transform:translateY(-7px);}

/* ===== [MEGA X] 페이지네이션 가운데 정렬 + 하단 여백 ===== */
#bo_list .pg_wrap, #bo_gall .pg_wrap{
  display:flex !important; justify-content:center !important; align-items:center;
  flex-wrap:wrap; width:100%; text-align:center;
  margin:34px 0 68px !important;
}
#bo_list .pg, #bo_gall .pg{
  float:none !important; display:inline-flex !important;
  justify-content:center; flex-wrap:wrap; gap:6px; margin:0;
}

/* ===== [MEGA X] 목록 하단(푸터와) 간격 확실히 ===== */
#bo_list, #bo_gall{ padding-bottom:90px !important; }
#bo_list .pg_wrap, #bo_gall .pg_wrap{ margin:34px 0 10px !important; }

/* ===== [MEGA X] 후기 상세 : 본문 줄바꿈 + 첨부 이미지(감사편지 등) ===== */
.mgx_success .rv_v_quote{ white-space:normal; word-break:keep-all; overflow-wrap:break-word; }

.mgx_success .rv_v_figs{
  display:flex; flex-direction:column; align-items:center; gap:16px;
  margin:0 0 28px;
}
/* 카드가 이미지 크기에 맞춰 줄어들도록 width:auto (좌우 빈 공간 방지) */
.mgx_success .rv_v_fig{
  width:auto; max-width:100%; margin:0; padding:14px; box-sizing:border-box;
  background:#fff; border:1px solid #e6e9f0; border-radius:14px;
  box-shadow:0 6px 20px rgba(15,35,80,.06); text-align:center;
}
.mgx_success .rv_v_fig a{ display:block; line-height:0; }
.mgx_success .rv_v_fig img{
  width:auto !important; height:auto !important;
  max-width:100%; max-height:1100px;
  display:inline-block; vertical-align:top; border-radius:8px;
}
@media (max-width:768px){
  .mgx_success .rv_v_figs{ margin-bottom:22px; gap:12px; }
  .mgx_success .rv_v_fig{ padding:10px; border-radius:12px; }
  .mgx_success .rv_v_fig img{ max-height:none; }
}
