/* ===================================================================
   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 PRESS (News & Press) Board Skin — gnuboard5 (PC)
   Card-grid newsroom + pinned featured video. Navy palette #0F2350.
   The article view / write / comment screens reuse the megax_en CSS,
   so this file styles the LIST (newsroom) only.
   =================================================================== */

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

/* heading */
.press_head { text-align: center; padding: 8px 0 28px; }
.press_eyebrow { margin: 0; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.press_title { margin: 6px 0 10px; font-size: 34px; font-weight: 800; color: var(--mgx); letter-spacing: -.5px; }
.press_lead { margin: 0 auto; max-width: 620px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* category chips */
.press_cate { display: flex; justify-content: center; margin-bottom: 26px; }
.press_cate ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.press_cate li a { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.press_cate li a:hover, .press_cate li.bo_cate_on a { background: var(--mgx); color: #fff; border-color: var(--mgx); }

/* featured: video (left, large) + article card (right) */
.press_feature {
    display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px;
    margin-bottom: 36px; align-items: start;
}
.press_feature_video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; }
.press_feature_video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.press_video_tag {
    position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; background: rgba(15,35,80,.82); color: #fff; border-radius: 999px;
    font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); z-index: 2;
}
.press_video_tag .fa { color: var(--accent); }

/* right-hand featured article rendered as a full card, matched to video height */
.press_feature_card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; overflow: hidden; transition: .18s ease;
    height: 100%; min-width: 0;
}
.press_feature_card:hover { box-shadow: 0 16px 40px rgba(15,35,80,.14); transform: translateY(-3px); border-color: transparent; }
.press_feature_card .press_thumb { flex: 0 0 52%; aspect-ratio: auto; border-radius: 0; min-height: 0; }
.press_feature_card .press_body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1 1 48%; min-height: 0; overflow: hidden; }
.press_feature_card .press_card_tit { font-size: 17px; -webkit-line-clamp: 2; }
.press_feature_card .press_excerpt { -webkit-line-clamp: 2; }
.press_feature_card .press_card_foot { margin-top: auto; }
.press_badge { display: inline-block; align-self: flex-start; padding: 4px 12px; background: var(--accent); color: #1c2638; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }

/* fallback meta block when no article exists yet */
.press_feature_meta { padding: 30px; color: #fff; background: var(--mgx); border-radius: 16px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.press_feature_meta h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.press_feature_meta p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #aebcd4; }

/* toolbar */
.press_toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 16px; border-bottom: 2px solid var(--mgx); margin-bottom: 26px; }
#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; }
.btn_bo_user .btn, .btn_bo_user .btn_b01, .btn_bo_user .btn_admin {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid var(--mgx); border-radius: 8px; background: #fff; color: var(--mgx); cursor: pointer;
}
.btn_bo_user .btn:hover, .btn_bo_user .btn_b01:hover { background: var(--mgx); color: #fff; }

/* card grid */
.press_grid { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.press_card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .18s ease; }
.press_card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,35,80,.14); border-color: transparent; }
.press_card.is_notice { border-color: var(--mgx); box-shadow: 0 0 0 1px var(--mgx) inset; }
.press_card_link { display: flex; flex-direction: column; height: 100%; }
.press_thumb { position: relative; aspect-ratio: 16/10; background: var(--mgx-soft); overflow: hidden; }
.press_thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .3s ease; }
.press_card:hover .press_thumb img { transform: scale(1.05); }
.press_thumb_ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--mgx) 0%, var(--mgx-2) 100%); color: #fff; gap: 2px; }
.press_thumb_ph span { font-size: 12px; letter-spacing: 4px; color: #aebcd4; }
.press_thumb_ph b { font-size: 22px; letter-spacing: 6px; font-weight: 800; }
.press_pin { position: absolute; top: 12px; left: 12px; padding: 4px 11px; background: var(--mgx); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 700; }
.press_outlet { position: absolute; bottom: 12px; left: 12px; padding: 4px 11px; background: rgba(255,255,255,.92); color: var(--mgx); border-radius: 6px; font-size: 11px; font-weight: 700; }
.press_body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.press_card_tit { margin: 0 0 8px; font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.press_card:hover .press_card_tit { color: var(--mgx); }
.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; vertical-align: middle; }
.press_excerpt { margin: 0 0 16px; font-size: 13px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.press_card_foot { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.press_author { font-weight: 600; color: var(--mgx-2); }
.press_date { margin-left: auto; }
.press_cmt { color: var(--mgx-2); }
.press_empty { grid-column: 1 / -1; text-align: center; padding: 70px 0; color: var(--muted); }

/* pagination */
.pg_wrap { margin: 30px 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; }

/* search overlay (shared look with megax_en) */
.bo_sch_wrap { display: none; position: fixed; inset: 0; z-index: 1000; }
.bo_sch_bg { position: absolute; inset: 0; background: rgba(15,35,80,.45); }
.bo_sch { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(460px,90vw); background: #fff; border-radius: 14px; padding: 30px; z-index: 2; }
.bo_sch h3 { font-size: 18px; color: var(--mgx); margin: 0 0 16px; }
.bo_sch select, .bo_sch .sch_input { width: 100%; height: 46px; 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: 54px; 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; }

/* responsive */
@media (max-width: 1024px) {
    .press_grid { grid-template-columns: repeat(2, 1fr); }
    .press_feature { grid-template-columns: 1fr; }
    .press_feature_card { flex-direction: row; }
    .press_feature_card .press_thumb { width: 42%; aspect-ratio: auto; flex-shrink: 0; }
    .press_feature_card .press_body { flex: 1; }
}
@media (max-width: 600px) {
    .press_title { font-size: 26px; }
    .press_grid { grid-template-columns: 1fr; gap: 16px; }
    .press_feature_card { flex-direction: column; }
    .press_feature_card .press_thumb { width: 100%; aspect-ratio: 16/9; }
}
/* ── 폭 안전장치: 그누보드 $width 가 100%/빈값이어도 본문 폭(1180px) 안에서 가운데 정렬 ── */
.mgx_press { 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 페이지 헤더 ── */
.mgx_board .press_head.mgx_board_head { text-align: center; padding: 28px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.mgx_board .press_head.mgx_board_head .press_title { font-size: 26px; color: var(--mgx); margin: 4px 0 0; }
.mgx_board .press_head.mgx_board_head .press_eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }

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

/* 둘째 공지 없을 때: 오른쪽 빈 박스만 (틀 유지) */
.press_feature_card--empty { background: var(--mgx); border-radius: 16px; min-height: 100%; }

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