@charset "utf-8";

/* ===== CSS 변수 ===== */
:root {
  --primary: #4f6ef7;
  --primary-dark: #3a57e8;
  --primary-light: #eef1fe;
  --accent: #ff5c7a;
  --text-900: #111827;
  --text-700: #374151;
  --text-500: #6b7280;
  --text-300: #d1d5db;
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-light: #f3f4f6;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

/* ===== 초기화 ===== */
html { overflow-y: scroll; }
body {
  margin: 0; padding: 0;
  font-size: 14px;
  font-family: 'Pretendard', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gray);
  color: var(--text-700);
  line-height: 1.6;
}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img { margin: 0; padding: 0; border: 0; }
h1, h2, h3, h4, h5, h6 {
  font-size: 1em;
  font-family: 'Pretendard', 'Malgun Gothic', -apple-system, sans-serif;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ul, dl, dt, dd { margin: 0; padding: 0; list-style: none; }
legend { position: absolute; margin: 0; padding: 0; font-size: 0; line-height: 0; text-indent: -9999em; overflow: hidden; }
label, input, button, select, img { vertical-align: middle; font-size: 1em; }
input, button { margin: 0; padding: 0; font-family: inherit; font-size: 1em; }
input[type="submit"] { cursor: pointer; }
button { cursor: pointer; }
textarea, select { font-family: inherit; font-size: 1em; }
select { margin: 0; }
p { margin: 0; padding: 0; word-break: break-all; }
hr { display: none; }
pre { overflow-x: auto; font-size: 1.1em; }
a { color: var(--text-900); text-decoration: none; }

*, :after, :before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input[type=text], input[type=password], textarea {
  transition: all 0.25s ease;
  outline: none;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.18);
  border: 1px solid var(--primary) !important;
}

.placeholdersjs { color: #aaa !important; }

/* ===== 레이아웃 크기 ===== */
#hd, #wrapper, #ft { min-width: 1200px; }

#hd_pop,
#hd_wrapper,
#tnb .inner,
#gnb .gnb_wrap,
#container_wr,
#ft_wr { width: 1200px; }

/* ===== 공통 유틸리티 ===== */
.is-hidden { display: none !important; }
.is-visible { display: block !important; }
.pc-only { display: none; }
@media (min-width: 769px) { .pc-only { display: block !important; } }
.mobile-only { display: block; }
@media (min-width: 769px) { .mobile-only { display: none !important; } }

/* ===== 팝업레이어 ===== */
#hd_pop { z-index: 1000; position: relative; margin: 0 auto; height: 0; }
#hd_pop h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.hd_pops { position: absolute; border: 1px solid var(--border); background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.hd_pops img { max-width: 100%; }
.hd_pops_con {}
.hd_pops_footer { padding: 0; background: var(--text-900); color: #fff; text-align: left; position: relative; }
.hd_pops_footer::after { display: block; visibility: hidden; clear: both; content: ""; }
.hd_pops_footer button { padding: 10px 14px; border: 0; color: #fff; font-size: 0.85em; }
.hd_pops_footer .hd_pops_reject { background: transparent; text-align: left; }
.hd_pops_footer .hd_pops_close { background: #333; position: absolute; top: 0; right: 0; }

/* ===== 상단 헤더 ===== */
#hd {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
#hd_h1 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }

/* TNB (top navigation bar) */
#tnb {
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}
#tnb::after { display: block; visibility: hidden; clear: both; content: ""; }
#tnb .inner { margin: 0 auto; }

#hd_define { float: left; }
#hd_define::after { display: block; visibility: hidden; clear: both; content: ""; }
#hd_define li {
  float: left;
  font-size: 0.85em;
  line-height: 40px;
  border-right: 1px solid var(--border);
  position: relative;
  text-align: center;
  padding: 0 14px 0 0;
  margin-right: 10px;
}
#hd_define li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
#hd_define li a { display: inline-block; color: var(--text-500); transition: color var(--transition); }
#hd_define li a:hover { color: var(--primary); }
#hd_define li.active a { color: var(--primary); font-weight: 600; }

#hd_qnb { float: right; }
#hd_qnb::after { display: block; visibility: hidden; clear: both; content: ""; }
#hd_qnb li {
  float: left;
  font-size: 0.85em;
  line-height: 40px;
  border-right: 1px solid var(--border);
  position: relative;
  text-align: center;
  padding: 0 14px 0 0;
  margin-right: 10px;
}
#hd_qnb li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
#hd_qnb li a { display: inline-block; color: var(--text-500); transition: color var(--transition); }
#hd_qnb li a:hover { color: var(--primary); }
#hd_qnb .visit .visit-num {
  display: inline-block;
  line-height: 18px;
  padding: 0 7px;
  margin-left: 5px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* 헤더 래퍼 */
#hd_wrapper {
  position: relative;
  margin: 0 auto;
  height: 90px;
  display: flex;
  align-items: center;
}
#hd_wrapper::after { display: block; visibility: hidden; clear: both; content: ""; }

/* 로고 */
#logo { float: left; display: flex; align-items: center; height: 90px; }
#logo img { max-height: 50px; width: auto; }

/* 검색 */
.hd_sch_wr {
  float: left;
  display: flex;
  align-items: center;
  height: 90px;
  margin-left: 48px;
}
#hd_sch { display: flex; align-items: center; }
#hd_sch legend { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#hd_sch {
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
#hd_sch:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.12);
}
#hd_sch #sch_stx {
  float: left;
  width: 340px;
  height: 42px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  font-size: 0.95em;
  color: var(--text-900);
  outline: none;
  box-shadow: none !important;
}
#hd_sch #sch_stx::placeholder { color: var(--text-500); }
#hd_sch #sch_submit {
  float: left;
  width: 48px;
  height: 42px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
}
#hd_sch #sch_submit:hover { background: var(--primary-dark); }

/* 로그인 */
.hd_login {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}
.hd_login li {
  float: left;
  margin: 0;
  padding: 0;
  border: 0;
}
.hd_login a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-700);
  font-size: 0.85em;
  transition: background var(--transition), color var(--transition);
}
.hd_login a:hover { background: var(--primary-light); color: var(--primary); }
.hd_login .tnb_admin a {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.hd_login .tnb_admin a:hover { background: var(--primary-dark); }

/* ===== GNB 메인메뉴 ===== */
#gnb {
  position: relative;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
#gnb > h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#gnb .gnb_wrap { margin: 0 auto; position: relative; }
#gnb .gnb_wrap:hover,
#gnb .gnb_wrap:focus,
#gnb .gnb_wrap:active { z-index: 3; }

#gnb #gnb_1dul {
  font-size: 0.95em;
  padding: 0;
  border-bottom: none;
}
#gnb ul::after { display: block; visibility: hidden; clear: both; content: ""; }
#gnb .gnb_1dli {
  float: left;
  line-height: 52px;
  padding: 0;
  position: relative;
}
#gnb .gnb_1dli:hover > a { color: var(--primary); }

.gnb_1dli .bg {
  position: absolute;
  top: 20px; right: 8px;
  display: inline-block;
  width: 10px; height: 10px;
  overflow: hidden;
  background: url('../img/gnb_bg2.gif') no-repeat 50% 50%;
  text-indent: -999px;
  opacity: 0.4;
}
.gnb_1da {
  display: block;
  font-weight: 600;
  font-size: 0.97em;
  padding: 0 18px;
  color: var(--text-900);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.gnb_1da::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--primary);
  transition: left 0.2s ease, right 0.2s ease;
}
.gnb_1dli:hover .gnb_1da::after,
.gnb_1dli_over .gnb_1da::after { left: 18px; right: 18px; }

.gnb_1dli.gnb_al_li_plus .gnb_1da { padding-right: 26px; }

/* 2단 드롭다운 */
.gnb_2dli:first-child { border: 0; }
.gnb_2dul {
  display: none;
  position: absolute;
  top: 52px;
  min-width: 160px;
  padding-top: 4px;
  z-index: 100;
}
.gnb_2dul .gnb_2dul_box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.gnb_2da {
  display: block;
  padding: 0 16px;
  line-height: 42px;
  background: var(--bg-white);
  color: var(--text-700);
  font-size: 0.9em;
  transition: background var(--transition), color var(--transition);
}
a.gnb_2da:hover { color: var(--primary); background: var(--primary-light); }

.gnb_1dli_over .gnb_2dul { display: block; left: 0; }
.gnb_1dli_over2 .gnb_2dul { display: block; right: 0; }
.gnb_wrap .gnb_empty { padding: 10px 0; width: 100%; text-align: center; line-height: 3em; color: var(--text-500); }
.gnb_wrap .gnb_empty a { color: var(--primary); text-decoration: underline; }
.gnb_wrap .gnb_al_ul .gnb_empty,
.gnb_wrap .gnb_al_ul .gnb_empty a { color: var(--text-500); }

/* 전체메뉴 버튼 */
#gnb .gnb_menu_btn {
  background: var(--primary);
  color: #fff;
  width: 52px;
  height: 52px;
  border: 0;
  vertical-align: top;
  font-size: 18px;
  border-radius: 0;
  transition: background var(--transition);
}
#gnb .gnb_menu_btn:hover { background: var(--primary-dark); }
#gnb .gnb_close_btn {
  background: var(--bg-white);
  color: var(--text-500);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  vertical-align: top;
  font-size: 18px;
  position: absolute;
  top: 14px;
  right: 14px;
  transition: background var(--transition);
}
#gnb .gnb_close_btn:hover { background: var(--bg-light); color: var(--text-900); }
#gnb .gnb_mnal { float: right; padding: 0; }

/* 전체메뉴 패널 */
#gnb_all {
  display: none;
  position: absolute;
  width: 100%;
  background: var(--bg-white);
  z-index: 1000;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
#gnb_all h2 {
  font-size: 1.1em;
  font-weight: 700;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-900);
}
#gnb_all .gnb_al_ul::after { display: block; visibility: hidden; clear: both; content: ""; }
#gnb_all .gnb_al_ul > li:nth-child(5n+1) { border-left: 0; }
#gnb_all .gnb_al_li {
  float: left;
  width: 20%;
  min-height: 130px;
  padding: 22px 24px;
  border-left: 1px solid var(--border);
}
#gnb_all .gnb_al_li .gnb_al_a {
  font-size: 1em;
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary);
}
#gnb_all .gnb_al_li li { line-height: 2.2em; }
#gnb_all .gnb_al_li li a { color: var(--text-500); font-size: 0.9em; transition: color var(--transition); }
#gnb_all .gnb_al_li li a:hover { color: var(--primary); }
#gnb_all_bg {
  display: none;
  background: rgba(0,0,0,0.35);
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0; top: 0;
  z-index: 999;
}

/* ===== 콘텐츠 레이아웃 ===== */
#wrapper {}
#container_wr::after { display: block; visibility: hidden; clear: both; content: ""; }
#container_wr { margin: 0 auto; zoom: 1; }

#aside {
  float: right;
  width: 235px;
  padding: 0;
  height: 100%;
  margin: 28px 0 28px 24px;
}

#container {
  position: relative;
  float: left;
  min-height: 500px;
  height: auto !important;
  margin: 28px 0;
  font-size: 1em;
  width: 920px;
  zoom: 1;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
#container::after { display: block; visibility: hidden; clear: both; content: ""; }

#container_title {
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 auto;
  color: var(--text-900);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
}
#container_title span { margin: 0 auto; display: block; line-height: 1.5; }

/* 최신글 래퍼 */
.lt_wr { width: 32%; }
.lt_wr:nth-child(3n+1) { clear: both; }
.latest_wr { margin-bottom: 24px; }
.latest_wr::after { display: block; visibility: hidden; clear: both; content: ""; }
.latest_top_wr { margin: 0 -10px 24px; }
.latest_top_wr::after { display: block; visibility: hidden; clear: both; content: ""; }

/* ===== 하단 (Footer) ===== */
#ft {
  background: #1a1f2e;
  margin: 0 auto;
  text-align: center;
}
#ft h1 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#ft_wr {
  max-width: 1240px;
  margin: 0;
  padding: 48px 20px 0;
  position: relative;
  display: inline-block;
  text-align: left;
}
#ft_wr::after { display: block; visibility: hidden; clear: both; content: ""; }
#ft_wr .ft_cnt { width: 25%; float: left; padding: 0 20px; }

#ft_link { text-align: left; margin-bottom: 12px; }
#ft_link a {
  display: inline-block;
  color: #94a3b8;
  line-height: 2.2em;
  font-size: 0.88em;
  margin-right: 8px;
  transition: color var(--transition);
}
#ft_link a:hover { color: #fff; }

#ft_company h2 { font-size: 0.95em; font-weight: 700; margin-bottom: 14px; color: #e2e8f0; }
#ft_company { font-weight: normal; color: #64748b; line-height: 2em; font-size: 0.85em; }

#ft_catch { margin: 20px 0 10px; }
#ft_copy {
  text-align: center;
  width: 1200px;
  margin: 30px auto 0;
  padding: 20px 0;
  color: #475569;
  font-size: 0.82em;
  border-top: 1px solid #2d3748;
}

/* 상단이동 버튼 */
#top_btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border: 0;
  color: #fff;
  text-align: center;
  font-size: 16px;
  z-index: 90;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
#top_btn:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== 게시물 선택복사/이동 ===== */
#copymove {}
#copymove .win_desc { text-align: center; display: block; }
#copymove .tbl_wrap { margin: 20px; }
#copymove .win_btn { padding: 0 20px 20px; }
.copymove_current { float: right; background: var(--accent); padding: 4px 10px; color: #fff; border-radius: var(--radius-sm); font-size: 0.85em; }
.copymove_currentbg { background: var(--bg-light); }

/* ===== 화면낭독기 ===== */
#hd_login_msg { position: absolute; top: 0; left: 0; font-size: 0; line-height: 0; overflow: hidden; }
.msg_sound_only, .sound_only {
  display: inline-block !important;
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
  border: 0 !important;
  overflow: hidden !important;
}

/* 본문 바로가기 */
#skip_to_container a {
  z-index: 100000;
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  font-size: 0; line-height: 0;
  overflow: hidden;
}
#skip_to_container a:focus,
#skip_to_container a:active {
  width: 100%;
  height: 60px;
  background: var(--primary);
  color: #fff;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  line-height: 60px;
}

/* ===== 이미지 너비 ===== */
.img_fix { width: 100%; height: auto; }

/* ===== 캡챠 ===== */
#captcha { display: inline-block; position: relative; }
#captcha legend { position: absolute; margin: 0; padding: 0; font-size: 0; line-height: 0; text-indent: -9999em; overflow: hidden; }
#captcha #captcha_img { height: 40px; border: 1px solid var(--border); vertical-align: top; padding: 0; margin: 0; border-radius: var(--radius-sm); }
#captcha #captcha_mp3 { margin: 0; padding: 0; width: 40px; height: 40px; border: 0; background: transparent; vertical-align: middle; overflow: hidden; cursor: pointer; background: url('../../../img/captcha2.png') no-repeat; text-indent: -999px; border-radius: var(--radius-sm); }
#captcha #captcha_reload { margin: 0; padding: 0; width: 40px; height: 40px; border: 0; background: transparent; vertical-align: middle; overflow: hidden; cursor: pointer; background: url('../../../img/captcha2.png') no-repeat 0 -40px; text-indent: -999px; border-radius: var(--radius-sm); }
#captcha #captcha_key { margin: 0 0 0 3px; padding: 0 5px; width: 90px; height: 40px; border: 1px solid var(--border); background: #fff; font-size: 1.2em; font-weight: bold; text-align: center; border-radius: var(--radius-sm); vertical-align: top; }
#captcha #captcha_info { display: block; margin: 5px 0 0; font-size: 0.9em; color: var(--text-500); }

/* 캡챠 모바일 */
#captcha.m_captcha audio { display: block; margin: 0 0 5px; width: 187px; }
#captcha.m_captcha #captcha_img { width: 160px; height: 60px; border: 1px solid var(--border); margin-bottom: 3px; margin-top: 5px; display: block; border-radius: var(--radius-sm); }
#captcha.m_captcha #captcha_reload { position: static; margin: 0; padding: 0; width: 40px; height: 40px; border: 0; background: transparent; vertical-align: middle; overflow: hidden; cursor: pointer; background: url('../../../img/captcha2.png') no-repeat 0 -40px; text-indent: -999px; }
#captcha.m_captcha #captcha_reload span { display: none; }
#captcha.m_captcha #captcha_key { margin: 0; padding: 0 5px; width: 115px; height: 29px; border: 1px solid var(--border); background: #fff; font-size: 1.2em; font-weight: bold; text-align: center; line-height: 29px; margin-left: 3px; }
#captcha.m_captcha #captcha_info { display: block; margin: 5px 0 0; font-size: 0.9em; color: var(--text-500); }
#captcha.m_captcha #captcha_mp3 { width: 31px; height: 31px; background: url('../../../img/captcha2.png') no-repeat 0 0; vertical-align: top; overflow: hidden; cursor: pointer; text-indent: -9999px; border: none; }

/* ===== ckeditor 단축키 ===== */
.cke_sc { margin: 0 0 5px; text-align: right; }
.btn_cke_sc { display: inline-block; padding: 0 10px; height: 26px; border: 1px solid var(--border); background: var(--bg-gray); color: var(--text-700); text-decoration: none; line-height: 2em; vertical-align: middle; cursor: pointer; border-radius: var(--radius-sm); font-size: 0.85em; }
.cke_sc_def { margin: 0 0 5px; padding: 12px; border: 1px solid var(--border); background: var(--bg-light); text-align: center; border-radius: var(--radius-sm); }
.cke_sc_def dl { margin: 0 0 5px; text-align: left; zoom: 1; }
.cke_sc_def dl::after { display: block; visibility: hidden; clear: both; content: ""; }
.cke_sc_def dt, .cke_sc_def dd { float: left; margin: 0; padding: 5px 0; border-bottom: 1px solid var(--border); }
.cke_sc_def dt { width: 20%; font-weight: 600; }
.cke_sc_def dd { width: 30%; }

/* ckeditor 콘텐츠 태그 */
#bo_v_con ul { display: block; list-style-type: disc; margin: 1em 0; padding-left: 40px; }
#bo_v_con ol { display: block; list-style-type: decimal; margin: 1em 0; padding-left: 40px; }
#bo_v_con li { display: list-item; }

/* ===== 버튼 ===== */
a.btn, .btn {
  line-height: 36px;
  height: 36px;
  padding: 0 14px;
  text-align: center;
  font-weight: 600;
  border: 0;
  font-size: 1em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

a.btn01 { display: inline-block; padding: 7px 12px; border: 1px solid var(--border); background: var(--bg-white); color: var(--text-700); text-decoration: none; vertical-align: middle; border-radius: var(--radius-sm); transition: background var(--transition); }
a.btn01:hover { background: var(--bg-light); }
button.btn01 { display: inline-block; margin: 0; padding: 7px 12px; border: 1px solid var(--border); background: var(--bg-white); color: var(--text-700); border-radius: var(--radius-sm); }

a.btn02 { display: inline-block; padding: 7px 12px; border: 1px solid #334155; background: #334155; color: #fff; text-decoration: none; vertical-align: middle; border-radius: var(--radius-sm); transition: background var(--transition); }
a.btn02:hover { background: #1e293b; }
button.btn02 { display: inline-block; margin: 0; padding: 7px 12px; border: 1px solid #334155; background: #334155; color: #fff; border-radius: var(--radius-sm); }

.btn_confirm { text-align: right; }

.btn_submit {
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition);
}
.btn_submit:hover { background: var(--primary-dark); }

.btn_close {
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-700);
  transition: background var(--transition);
}
.btn_close:hover { background: var(--bg-light); }
a.btn_close { text-align: center; line-height: 50px; }

a.btn_cancel, button.btn_cancel {
  display: inline-block;
  background: #94a3b8;
  color: #fff;
  text-decoration: none;
  vertical-align: middle;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  border: 0;
  transition: background var(--transition);
}
.btn_cancel:hover { background: #64748b; }

a.btn_frmline, button.btn_frmline {
  display: inline-block;
  width: 128px;
  padding: 0 5px;
  height: 40px;
  border: 0;
  background: #475569;
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  vertical-align: top;
  font-weight: 500;
  transition: background var(--transition);
}
button.btn_frmline { font-size: 1em; }
a.btn_frmline:hover, button.btn_frmline:hover { background: #334155; }

/* 게시판용 버튼 */
a.btn_b01, .btn_b01 { display: inline-block; color: var(--text-300); text-decoration: none; vertical-align: middle; border: 0; background: transparent; transition: color var(--transition); }
.btn_b01:hover { color: var(--text-900); }
a.btn_b02, .btn_b02 { display: inline-block; background: var(--primary); padding: 0 12px; color: #fff; text-decoration: none; border: 0; vertical-align: middle; border-radius: var(--radius-sm); transition: background var(--transition); }
a.btn_b02:hover, .btn_b02:hover { background: var(--primary-dark); }
a.btn_b03, .btn_b03 { display: inline-block; background: var(--bg-white); border: 1px solid var(--border); color: var(--text-700); text-decoration: none; vertical-align: middle; border-radius: var(--radius-sm); transition: background var(--transition); }
a.btn_b03:hover, .btn_b03:hover { background: var(--bg-light); }
a.btn_b04, .btn_b04 { display: inline-block; background: var(--bg-white); border: 1px solid var(--border); color: var(--text-700); text-decoration: none; vertical-align: middle; border-radius: var(--radius-sm); transition: background var(--transition); }
a.btn_b04:hover, .btn_b04:hover { background: var(--bg-light); color: var(--text-900); }
a.btn_admin, .btn_admin { display: inline-block; color: var(--accent); text-decoration: none; vertical-align: middle; transition: color var(--transition); }
.btn_admin:hover, a.btn_admin:hover { color: #e63956; }

/* ===== 기본 테이블 ===== */
.tbl_wrap table { width: 100%; border-collapse: collapse; border-spacing: 0; background: var(--bg-white); border-top: 2px solid var(--primary); border-bottom: 1px solid var(--border); }
.tbl_wrap caption { padding: 10px 0; font-weight: 700; text-align: left; color: var(--text-900); }

.tbl_head01 { margin: 0 0 12px; }
.tbl_head01 caption { padding: 0; font-size: 0; line-height: 0; overflow: hidden; }
.tbl_head01 thead th { padding: 14px 6px; font-weight: 600; text-align: center; border-bottom: 1px solid var(--border); height: 46px; background: var(--bg-gray); color: var(--text-700); font-size: 0.9em; }
.tbl_head01 thead th input { vertical-align: top; }
.tbl_head01 tfoot th, .tbl_head01 tfoot td { padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-light); text-align: center; }
.tbl_head01 tbody th { padding: 10px 6px; border-bottom: 1px solid var(--border); color: var(--text-700); font-weight: 500; }
.tbl_head01 td { color: var(--text-700); padding: 12px 6px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); line-height: 1.5em; height: 52px; word-break: break-all; }
.tbl_head01 tbody tr:hover td { background: var(--primary-light); }
.tbl_head01 a:hover { text-decoration: underline; color: var(--primary); }

.tbl_head02 { margin: 0 0 12px; }
.tbl_head02 caption { padding: 0; font-size: 0; line-height: 0; overflow: hidden; }
.tbl_head02 thead th { padding: 10px; border-top: 2px solid var(--primary); border-bottom: 1px solid var(--border); background: var(--bg-gray); color: var(--text-700); font-size: 0.9em; text-align: center; font-weight: 600; }
.tbl_head02 thead a { color: var(--text-700); }
.tbl_head02 thead th input { vertical-align: top; }
.tbl_head02 tfoot th, .tbl_head02 tfoot td { padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-light); text-align: center; }
.tbl_head02 tbody th { padding: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-white); }
.tbl_head02 td { padding: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-white); line-height: 1.5em; word-break: break-all; }

/* ===== 폼 테이블 ===== */
.tbl_frm01 { margin: 0 0 24px; }
.tbl_frm01 table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.tbl_frm01 th { width: 80px; padding: 10px 14px; border: 1px solid var(--border); border-left: 0; background: var(--bg-gray); text-align: left; font-weight: 500; color: var(--text-700); }
.tbl_frm01 td { padding: 8px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: transparent; }
.wr_content textarea, .tbl_frm01 textarea, .form_01 textarea, .frm_input {
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-900);
  vertical-align: middle;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  transition: border var(--transition), box-shadow var(--transition);
}
.tbl_frm01 textarea { padding: 8px 10px; }
.frm_input { height: 40px; }

.full_input { width: 100%; }
.half_input { width: 49.5%; }
.twopart_input { width: 385px; margin-right: 10px; }
.tbl_frm01 textarea, .write_div textarea { width: 100%; height: 100px; }
.tbl_frm01 a { text-decoration: none; color: var(--primary); }
.tbl_frm01 .frm_file { display: block; margin-bottom: 5px; }
.tbl_frm01 .frm_info { display: block; padding: 0 0 5px; line-height: 1.6em; color: var(--text-500); font-size: 0.88em; }
.frm_info.add_info { margin-top: 10px !important; padding: 10px 14px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 1.7; }
.btn_info_toggle { display: block; margin: 5px 0 0 21px; font-size: 12px; color: var(--primary); background: none; border: none; cursor: pointer; text-decoration: underline; }

/* ===== 기본 리스트 ===== */
.list_01 ul { border-top: 1px solid var(--border); }
.list_01 li { border-bottom: 1px solid var(--border); background: var(--bg-white); padding: 12px 16px; list-style: none; position: relative; transition: background var(--transition); }
.list_01 li:nth-child(odd) { background: var(--bg-gray); }
.list_01 li::after { display: block; visibility: hidden; clear: both; content: ""; }
.list_01 li:hover { background: var(--primary-light); }
.list_01 li.empty_li { text-align: center; padding: 24px 0; color: var(--text-500); }

/* ===== 폼 리스트 ===== */
.form_01 h2 { font-size: 1.1em; font-weight: 700; }
.form_01 li { margin-bottom: 12px; }
.form_01 ul::after, .form_01 li::after { display: block; visibility: hidden; clear: both; content: ""; }
.form_01 .left_input { float: left; }
.form_01 .margin_input { margin-right: 1%; }
.form_01 textarea { height: 100px; width: 100%; }
.form_01 .frm_label { display: inline-block; width: 130px; }

/* 자료없는 목록 */
.empty_table { padding: 56px 0 !important; text-align: center; color: var(--text-500); }
.empty_list { padding: 24px 0 !important; color: var(--text-500); text-align: center; }

/* 필수입력 */
.required, textarea.required { background-image: url('../img/require.png') !important; background-repeat: no-repeat !important; background-position: right top !important; }

/* 테이블 항목별 정의 */
.td_board { width: 80px; text-align: center; }
.td_category { width: 80px; text-align: center; }
.td_chk { width: 30px; text-align: center; }
.td_date { width: 60px; text-align: center; }
.td_datetime { width: 110px; text-align: center; }
.td_group { width: 80px; text-align: center; }
.td_mb_id { width: 100px; text-align: center; }
.td_mng { width: 80px; text-align: center; }
.td_name { width: 100px; text-align: left; }
.td_nick { width: 100px; text-align: center; }
.td_num { width: 50px; text-align: center; }
.td_numbig { width: 80px; text-align: center; }
.td_stat { width: 60px; text-align: center; }

.txt_active { color: #16a34a; font-weight: 600; }
.txt_done { color: var(--accent); }
.txt_expired { color: var(--text-300); }
.txt_rdy { color: #65a30d; }

/* ===== 새창 기본 스타일 ===== */
.new_win { position: relative; }
.new_win .tbl_wrap { margin: 0 20px; }
.new_win #win_title {
  font-size: 1.2em;
  height: 56px;
  line-height: 36px;
  padding: 10px 20px;
  background: var(--bg-white);
  color: var(--text-900);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.new_win #win_title .sv { font-size: 0.75em; line-height: 1.3em; }
.new_win .win_ul { margin-bottom: 15px; padding: 0 20px; }
.new_win .win_ul::after { display: block; visibility: hidden; clear: both; content: ""; }
.new_win .win_ul li { float: left; background: var(--bg-white); text-align: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 30px; margin-left: 6px; transition: all var(--transition); }
.new_win .win_ul li:first-child { margin-left: 0; }
.new_win .win_ul li a { display: block; padding: 8px 0; color: var(--primary); }
.new_win .win_ul .selected { background: var(--primary); border-color: var(--primary); position: relative; z-index: 5; }
.new_win .win_ul .selected a { color: #fff; font-weight: 700; }
.new_win .win_desc {
  position: relative;
  margin: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.95em;
  background: #fef2f2;
  color: var(--accent);
  line-height: 50px;
  text-align: left;
  padding: 0 20px;
  border: 1px solid #fecaca;
}
.new_win .win_desc i { font-size: 1.1em; vertical-align: baseline; }
.new_win .win_desc::after { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 50px; background: var(--accent); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.new_win .frm_info { font-size: 0.88em; color: var(--text-500); }
.new_win .win_total { float: right; display: inline-block; line-height: 30px; font-weight: normal; font-size: 0.82em; color: var(--primary); background: var(--primary-light); padding: 0 12px; border-radius: var(--radius-sm); }
.new_win .new_win_con { margin: 20px 0; padding: 20px; }
.new_win .new_win_con::after { display: block; visibility: hidden; clear: both; content: ""; }
.new_win .new_win_con2 { margin: 20px 0; }
.new_win .btn_confirm::after { display: block; visibility: hidden; clear: both; content: ""; }
.new_win .win_btn { text-align: center; }
.new_win .cert_btn { margin-bottom: 30px; text-align: center; }
.new_win .btn_close { padding: 0 20px; height: 45px; overflow: hidden; cursor: pointer; }
.new_win .btn_submit { padding: 0 20px; height: 45px; font-weight: bold; font-size: 1em; }

/* ===== 검색결과 색상 ===== */
.sch_word {
  color: #fff;
  background: var(--accent);
  padding: 2px 6px 3px;
  line-height: 18px;
  margin: 0 2px;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ===== JS alert 대안 ===== */
#validation_check { margin: 100px auto; width: 500px; }
#validation_check h1 { margin-bottom: 20px; font-size: 1.3em; font-weight: 700; }
#validation_check p { margin-bottom: 20px; padding: 30px 20px; border: 1px solid var(--border); background: var(--bg-white); border-radius: var(--radius-md); color: var(--text-700); }

/* ===== 사이드뷰 ===== */
.sv_wrap { position: relative; font-weight: normal; }
.sv_wrap .sv {
  z-index: 1000;
  display: none;
  margin: 5px 0 0;
  font-size: 0.88em;
  background: #1e293b;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.sv_wrap .sv::before { content: ""; position: absolute; top: -6px; left: 15px; width: 0; height: 0; border-style: solid; border-width: 0 6px 6px 6px; border-color: transparent transparent #1e293b transparent; }
.sv_wrap .sv a { display: inline-block; margin: 0; padding: 0 12px; line-height: 34px; width: 110px; font-weight: normal; color: #94a3b8; transition: all var(--transition); }
.sv_wrap .sv a:hover { background: #0f172a; color: #fff; }
.sv_member { color: var(--text-700); }
.sv_on { display: block !important; position: absolute; top: 23px; left: 0px; width: auto; height: auto; }
.sv_nojs .sv { display: block; }

/* ===== 페이징 ===== */
.pg_wrap { clear: both; float: left; display: inline-block; }
.pg_wrap::after { display: block; visibility: hidden; clear: both; content: ""; }
.pg { text-align: center; }
.pg_page, .pg_current { display: inline-block; vertical-align: middle; }
.pg a:focus, .pg a:hover { text-decoration: none; }
.pg_page {
  color: var(--text-500);
  font-size: 0.95em;
  height: 34px;
  line-height: 32px;
  padding: 0 10px;
  min-width: 34px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border);
  margin: 0 2px;
  transition: all var(--transition);
}
.pg_page:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pg_start { text-indent: -999px; overflow: hidden; background: url('../img/btn_first.gif') no-repeat 50% 50% var(--bg-white); padding: 0; border: 1px solid var(--border); }
.pg_prev  { text-indent: -999px; overflow: hidden; background: url('../img/btn_prev.gif')  no-repeat 50% 50% var(--bg-white); padding: 0; border: 1px solid var(--border); }
.pg_end   { text-indent: -999px; overflow: hidden; background: url('../img/btn_end.gif')   no-repeat 50% 50% var(--bg-white); padding: 0; border: 1px solid var(--border); }
.pg_next  { text-indent: -999px; overflow: hidden; background: url('../img/btn_next.gif')  no-repeat 50% 50% var(--bg-white); padding: 0; border: 1px solid var(--border); }
.pg_start:hover, .pg_prev:hover, .pg_end:hover, .pg_next:hover { background-color: var(--bg-light); }

.pg_current {
  display: inline-block;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  font-weight: 700;
  height: 34px;
  line-height: 34px;
  padding: 0 12px;
  min-width: 34px;
  border-radius: var(--radius-sm);
  margin: 0 2px;
}

/* ===== cheditor 이슈 ===== */
.cheditor-popup-window *, .cheditor-popup-window :after, .cheditor-popup-window :before {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}

/* ===== Mobile화면으로 ===== */
#device_change {
  display: block;
  margin: 0.4em;
  padding: 0.6em 0;
  border: 1px solid var(--border);
  border-radius: 2em;
  background: var(--bg-white);
  color: var(--text-700);
  font-size: 1.5em;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
}
#device_change:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
