@charset "utf-8";
@import url(https://fonts.googleapis.com/earlyaccess/nanumgothic.css);

/* 초기화 */
html {overflow-y:scroll}
body {margin:0;padding:0;font-size:0.75em;font-family:'Nanum Gothic', dotum, sans-serif;background:#fff}
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:'Nanum Gothic', dotum,  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:'Nanum Gothic', dotum, sans-serif;font-size:1em}
input[type="submit"] {cursor:pointer}
button {cursor:pointer}
img {max-width:100%}

textarea, select {font-family:dotum, sans-serif;font-size:1em}
select {margin:0;height:32px;border:1px solid #e4eaec}
p {margin:0;padding:0;word-break:break-all}
hr {display:none}
pre {overflow-x:scroll;font-size:1.1em}
a {color:#000;text-decoration:none}
a:link, a:visited {color:#000;text-decoration:none}
a:hover, a:focus, a:active {color:#000;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 {
-webkit-transition:all 0.30s ease-in-out;
-moz-transition:all 0.30s ease-in-out;
-ms-transition:all 0.30s ease-in-out;
-o-transition:all 0.30s ease-in-out;
outline:none;
}

input[type=text]:focus,input[type=password]:focus, textarea:focus,select:focus {
-webkit-box-shadow:0 0 5px #AEBBF5;
-moz-box-shadow:0 0 5px #AEBBF5;
box-shadow:0 0 5px #AEBBF5;
border:1px solid #5E76C9 !important;
}

.placeholdersjs {color:#aaa !important}

/* ============================================================
   반응형 브레이크포인트 안내
   - 이 테마는 데스크톱 레이아웃을 기준(base)으로 작성되어 있고,
     1024px 미만 화면에서는 파일 맨 아래 @media (max-width:1023.98px)
     블록이 모바일 레이아웃(햄버거 내비, 1단 스택 등)으로 덮어씁니다.
   - 600px 미만은 폰 화면 세부 조정을 위한 2차 브레이크포인트입니다.
   ============================================================ */

/* 레이아웃 크기 지정 */
#hd, #wrapper, #ft {width:100%}

#hd_pop,
#hd_wrapper,
#gnb .gnb_wrap,
#ft_wr {max-width:1200px;width:100%;margin:0 auto}

/* 팝업레이어 */
/* 공지 팝업(신착 알림 레이어): 관리자가 설정하는 top/left/width/height 값은 픽셀 고정이라
   화면 크기에 따라 위치가 어긋나거나 헤더 뒤로 가려질 수 있어서, 항상 뷰포트 정중앙에
   고정 표시되는 반응형 모달로 덮어씀. 어두운 배경(backdrop)은 #hd_pop(항상 DOM에 존재하는
   래퍼) 자체에 씌워서 .hd_pops(팝업 박스)보다 한 단계 낮은 z-index로 명확히 분리함
   (의사요소 음수 z-index는 브라우저별로 배경이 섞여 보이는 문제가 있어 사용하지 않음) */
#hd_pop {margin:0 auto;height:0}
/* #hd_pop 은 팝업이 없어도(전부 닫혔거나 등록된 팝업이 0개여도) <h2> 때문에 항상 DOM에
   존재하므로, 배경 딤 처리는 실제 .hd_pops 팝업 박스가 안에 있을 때만 :has() 로 조건부 적용 */
#hd_pop:has(.hd_pops) {z-index:999998;position:fixed;inset:0;width:100vw;height:100vh;background:rgba(10,15,40,0.55)}
#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}

.hd_pops {
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    transform:translate(-50%,-50%);
    width:92% !important;
    max-width:440px;
    height:auto !important;
    max-height:85vh;
    margin:0 !important;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    border:2px solid #AEBBF5;
    border-radius:16px;
    background-color:#fff !important;
    box-shadow:0 20px 60px rgba(20,40,120,0.25);
    z-index:999999;
}
.hd_pops img {max-width:100% !important;height:auto}
.hd_pops_con {width:100% !important;height:auto !important;max-height:none !important;padding:28px 24px 20px;overflow:visible !important;line-height:1.6em;color:#333;word-break:break-word;overflow-wrap:break-word}
.hd_pops_con img, .hd_pops_con table, .hd_pops_con iframe, .hd_pops_con video {max-width:100% !important}
.hd_pops_con table {display:block;overflow-x:auto}
.hd_pops_footer {display:flex;padding:0;background:#f7f8fc;color:#333;text-align:left;position:relative;border-top:1px solid #edf0f7;border-radius:0 0 13px 13px;overflow:hidden}
.hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
.hd_pops_footer button {flex:1 1 50%;padding:14px 10px;border:0;background:transparent;color:#666;font-size:0.92em;transition:background .15s,color .15s}
.hd_pops_footer .hd_pops_reject {text-align:center;border-right:1px solid #edf0f7}
.hd_pops_footer .hd_pops_reject:hover {background:#eef0fb;color:#4C6FD1}
.hd_pops_footer .hd_pops_close {position:static;text-align:center;font-weight:bold;color:#4C6FD1}
.hd_pops_footer .hd_pops_close:hover {background:#4C6FD1;color:#fff}

@media (max-width: 599.98px) {
    .hd_pops {width:88% !important;border-radius:14px}
    .hd_pops_con {padding:22px 18px 16px}
    .hd_pops_footer button {padding:12px 8px;font-size:0.88em}
}

/* 텍스트 크기 조절 */
#text_size {float:left;margin:0 0 0 10px;letter-spacing:-3px}
#text_size button {margin:0;padding:1px 2px;border:1px solid #c3c6ca;background:transparent;vertical-align:middle;cursor:pointer}
.ts_up {font-size:1.167em !important}
.ts_up2 {font-size:1.3em !important}

/* ============================================================
   상단 헤더 (로고 / 햄버거 내비 / 검색 / 인기검색어)
   ============================================================ */
#hd {z-index:20;position:relative;background:#4C6FD1}
#hd:after {display:block;visibility:hidden;clear:both;content:""}
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}

/* 데스크톱 전용 상단 유틸바 (회원가입/로그인/FAQ/1:1문의/접속자/홈/관리자) - 1024px 미만에서는 숨김 */
#hd_top {display:none;border-bottom:1px solid #ececec;background:#fbfbfb}
#hd_tnb {max-width:1200px;margin:0 auto;height:24px}
#hd_tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb {float:right;list-style:none}
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb li {float:left}
#tnb a {display:inline-block;padding:0 10px;height:24px;color:#999;line-height:24px}
#tnb a:focus, #tnb a:hover, #tnb a:active {text-decoration:none}

.hd_home {float:left;border-left:1px solid #ececec}
.hd_home a {float:left;display:inline-block;text-align:center;border-right:1px solid #ececec;width:32px;height:24px;line-height:24px;font-size:1.1em;color:#a5a5a5}
.hd_home a:hover {color:#4C6FD1}
.hd_home a.admin {color:#d13f4a}
.hd_home #hd_style_select {float:left;height:24px;margin-left:8px;padding:0 8px;border:0;border-left:1px solid #ececec;background:#fbfbfb;color:#6c6c6c;font-size:0.75em;cursor:pointer}

#hd_wrapper {position:relative;margin:0 auto;max-width:1200px;padding:12px 15px;display:flex;align-items:center;flex-wrap:wrap}
#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""}

#logo {margin:0 auto 0 0}
#logo img {display:block}
#logo .logo_pc {display:none}
#logo .logo_pc img {max-height:38px;width:auto}
#logo .logo_mobile {display:inline-block}
#logo .logo_mobile img {max-height:32px;width:auto;background:#fff;border-radius:10px;padding:5px 12px;box-shadow:0 2px 6px rgba(0,0,0,0.10)}

/* 햄버거 버튼 */
#gnb_open {order:2;padding:0 10px;height:40px;width:40px;border:0;background:none;color:#fff;font-size:1.6em}

/* 내비 드로어(모바일) / 인라인 메뉴바(데스크톱) */
#gnb {display:none;order:5;flex-basis:100%;background:#f7f7f7;position:fixed;top:0;left:0;z-index:99999;width:100%;max-width:400px;height:100%;overflow-y:auto;
-webkit-box-shadow:0 0 5px rgba(55,55,5,0.4);
-moz-box-shadow:0 0 5px rgba(55,55,5,0.4);
box-shadow:0 0 5px rgba(55,55,5,0.4)}
#gnb.gnb_open {display:block}
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#gnb_close {display:block;position:absolute;right:8px;top:10px;z-index:99;font-weight:bold;margin:0;height:40px;width:40px;border:0;color:#333;font-size:1.6em;background:transparent}

.gnb_login_link {padding:15px 20px;background:#4C6FD1;color:#fff;font-size:1.1em}
.gnb_login_link a {color:#fff;text-decoration:underline}

#gnb_1dul {background:#fff;border-top:1px solid #dde7e9}
#gnb_1dul a {color:#000;font-size:13px}
#gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1dli {position:relative;line-height:40px}
.gnb_1dli button.btn_gnb_op {position:absolute;top:5px;right:0;width:40px;height:40px;overflow:hidden;border:0;font-size:1.2em;background:#fff;text-indent:-9999px}
.gnb_1dli button.btn_gnb_op:before {content:"\f107";font-family:FontAwesome;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;line-height:40px;text-align:center;color:#999}
.gnb_1dli button.btn_gnb_cl:before {content:"\f106"}
.gnb_1da {display:block;padding:5px 20px;border-bottom:1px solid #dde7e9;font-weight:bold;font-size:1.2em;text-decoration:none}
.gnb_1da:focus, .gnb_1da:hover {text-decoration:none}
.gnb_2dul {display:none;background:#fafafa}
.gnb_2da {display:block;padding:13px 10px 13px 30px;text-align:left;text-decoration:none}
.gnb_2da:focus, .gnb_2da:hover {background:#eef0fb;text-decoration:none}

#gnb_empty {padding:20px 0;color:#666;text-align:center;line-height:2em}
#gnb_empty a {text-decoration:underline}

/* 1024px 미만 전용 빠른메뉴 (FAQ/1:1문의/접속자/새글) */
#hd_nb {background:#fff;margin-top:10px;border-bottom:1px solid #dde7e9;border-top:1px solid #dde7e9}
#hd_nb:after {display:block;visibility:hidden;clear:both;content:""}
#hd_nb li {width:50%;float:left;text-align:center;line-height:25px;font-size:1.083em;font-weight:bold}
#hd_nb li a {display:block;color:#717171;text-align:left;padding:10px 15px}
#hd_nb li i {font-size:14px;margin-right:10px;color:#a5a8ac}
#hd_nb .hd_nb1 {border-right:1px solid #dde7e9;border-bottom:1px solid #dde7e9}
#hd_nb .hd_nb2 {border-bottom:1px solid #dde7e9}
#hd_nb .hd_nb3 {border-right:1px solid #dde7e9}

/* 검색 + 인기검색어 */
#hd_sch_wrap {order:3;flex-basis:100%;margin:10px 0 0}
#hd_sch {margin:0;padding:0;border:2px solid #3D5BC0;border-radius:30px;overflow:hidden;background:#fff}
#hd_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
#hd_sch form {position:relative}
#hd_sch #sch_stx {width:100%;padding:0 45px 0 15px;height:36px;border:0;background:none;line-height:1.6em}
#hd_sch #sch_submit {position:absolute;top:0;right:0;padding:0;height:36px;width:40px;border:0;background:#3D5BC0;color:#fff;font-size:1.2em;cursor:pointer}

/* ============================================================
   메인배너 (swiper)
   ============================================================ */
#main_bn_box {position:relative;overflow:hidden;margin:15px 15px 30px;border-radius:16px;height:38vw;max-height:220px;min-height:140px;
box-shadow:0 8px 24px rgba(20,40,120,0.12)}
#main_bn_box .main_bn_ul {height:100%}
#main_bn_box .swiper-slide {width:100%;height:100%}
#main_bn_box .bn_wr, #main_bn_box .bn_wr a {display:block;width:100%;height:100%}
#main_bn_box .bn_wr img {width:100%;height:100%;object-fit:cover}
#main_bn_box .swiper-pagination {position:absolute;bottom:10px;left:0;width:100%;text-align:center}
#main_bn_box .swiper-pagination-bullet {width:8px;height:8px;margin:0 4px;background:#fff;opacity:.6}
#main_bn_box .swiper-pagination-bullet-active {opacity:1;background:#fda100}

/* ============================================================
   중간 레이아웃 (aside / container)
   ============================================================ */
#wrapper {max-width:1200px;z-index:5;margin:15px auto 0;padding:0 15px;display:flex;flex-direction:column}
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}

#aside {order:2;width:100%;background:#fff;margin-top:25px}

.idx_cnt {width:100%;display:grid;grid-template-columns:1fr;gap:20px}
.idx_cnt:after {display:block;visibility:hidden;clear:both;content:""}
.idx_cnt .lt_li {position:relative;min-width:0;min-height:0;display:flex;flex-direction:column}
.idx_cnt .lt_li > * {display:flex;flex-direction:column;flex:1 1 auto;width:100%}
.idx_cnt .lt_li:after {display:block;visibility:hidden;clear:both;content:""}
.idx_cnt .lat_title {display:block;margin-bottom:15px;font-size:14px}
.empty_li {text-align:center;line-height:168px;color:#666;padding:0}
.empty_li:before {background:none;padding:0}

/* 사이드바 광고 배너 (0~5개, 한 자리에서 자동 전환, 높이 100px) */
.aside_banner {margin-top:15px;width:100%;height:100px;border-radius:10px;overflow:hidden}
.aside_banner .swiper-container,
.aside_banner .swiper-slide {width:100%;height:100%}
.aside_banner a {display:block;width:100%;height:100%}
.aside_banner img {display:block;width:100%;height:100%;object-fit:cover}
.aside_banner .swiper-pagination {position:absolute;bottom:6px;left:0;width:100%;text-align:center}
.aside_banner .swiper-pagination-bullet {width:6px;height:6px;margin:0 3px;background:#fff;opacity:.7}
.aside_banner .swiper-pagination-bullet-active {opacity:1;background:#4C6FD1}

/*사이드 메뉴*/
#aside_ct {margin-top:15px}
#aside_ct ul {margin:0;padding:0}

#container {order:1;z-index:4;position:relative;width:100%;min-height:300px;font-size:1em}
#container:after {display:block;visibility:hidden;clear:both;content:""}
#container_title {padding-bottom:5px;margin-bottom:10px;font-size:16px;font-weight:bold}

/* 하단 레이아웃 */
#ft {border-top:1px solid #dde4e9;margin-top:30px}
#ft h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#ft p {margin:0;padding:10px 0;line-height:1.8em}

#ft_copy {background:#efefef}
#ft_copy div {position:relative;max-width:1200px;margin:0 auto;padding:10px 15px;color:#6c6c6c;text-align:center}
#ft_copy a {display:inline-block;margin:0 10px 0 0;color:inherit}
#ft_copy #ft_totop {float:right;margin:0}

#ft_company {border-top:1px solid #dde4e9;background:#fff}
#ft_company p.ft_info {padding:18px 15px 15px;line-height:20px;max-width:1200px;margin:0 auto;color:#6c6c6c;text-align:center}
#ft_family {position:absolute;top:0;right:0}

#top_btn {position:fixed;bottom:15px;right:15px;width:44px;height:44px;line-height:32px;border:1px solid #e5ecee;border-radius:50%;background:#fff;color:#8a95b8;text-align:center;font-size:15px;z-index:99;
-webkit-box-shadow:1px 2px 5px rgba(191, 191, 191, 0.4);
-moz-box-shadow:1px 2px 5px rgba(191, 191, 191, 0.4);
box-shadow:1px 2px 5px rgba(191, 191, 191, 0.4)}
#top_btn:hover {background:#4C6FD1;border-color:#4C6FD1;color:#fff}

/* 게시물 선택복사 선택이동 */
#copymove {}
.copymove_current {float:right;color:#ff3061}
.copymove_currentbg {background:#f4f4f4}

/* 화면낭독기 사용자용 */
#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:75px;background:#21272e;color:#fff;font-size:2em;font-weight:bold;text-align:center;text-decoration:none;line-height:3.3em}

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

/* 캡챠 자동등록(입력)방지 기본 */
#captcha {display:inline-block;position:relative;max-width:100%}
#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 #898989;vertical-align:top;padding:0;margin:0}
#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:3px}
#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:3px}
#captcha #captcha_key {margin:0 0 0 3px;padding:0 5px;width:90px;height:40px;border:1px solid #ccc;background:#fff;font-size:1.333em;font-weight:bold;text-align:center;border-radius:3px;vertical-align:top}
#captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}

/* 구글리캡챠 크기 조정 scale (좁은 화면) */
#captcha.recaptcha {max-width:213px;overflow:hidden}

/* ckeditor 단축키 */
.cke_sc {margin:0 0 5px;text-align:right}
.btn_cke_sc {display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;line-height:1.9em;vertical-align:middle;cursor:pointer}
.cke_sc_def {margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center}
.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 #e9e9e9}
.cke_sc_def dt {width:20%;font-weight:bold}
.cke_sc_def dd {width:30%}

/* ckeditor 태그 기본값 */
#bo_v_con ul {display:block;list-style-type:disc;margin-top:1em;margin-bottom:1em;margin-left:0;margin-right:0;padding-left:40px}
#bo_v_con ol {display:block;list-style-type:decimal;margin-top:1em;margin-bottom:1em;margin-left:0;margin-right:0;padding-left:40px}
#bo_v_con li {display:list-item}

/* 버튼 */
a.btn,.btn {display:inline-block;line-height:35px;height:35px;padding:0 10px;text-align:center;font-weight:bold;border:0;font-size:1.4em;
-webkit-transition:background-color 0.3s ease-out;
-moz-transition:background-color 0.3s ease-out;
-o-transition:background-color 0.3s ease-out;
transition:background-color 0.3s ease-out}

a.btn01 {display:inline-block;padding:7px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;vertical-align:middle}
a.btn01:focus, a.btn01:hover {text-decoration:none}
button.btn01 {display:inline-block;margin:0;padding:7px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none}
a.btn02 {display:inline-block;padding:7px;border:1px solid #3b3c3f;background:#4b545e;color:#fff;text-decoration:none;vertical-align:middle}
a.btn02:focus, .btn02:hover {text-decoration:none}
button.btn02 {display:inline-block;margin:0;padding:7px;border:1px solid #3b3c3f;background:#4b545e;color:#fff;text-decoration:none}

.btn_confirm {text-align:right} /* 서식단계 진행 */

.btn_submit {border:0;background:#4C6FD1;color:#fff;cursor:pointer;border-radius:3px}
.btn_submit:hover {background:#6485E0}
.btn_close {border:1px solid #dcdcdc;cursor:pointer;border-radius:3px;background:#fff}
a.btn_close {text-align:center;line-height:50px}

a.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
button.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
.btn_cancel:hover {background:#aaa}
a.btn_frmline, button.btn_frmline {display:inline-block;width:128px;padding:0 5px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline {}
button.btn_frmline {font-size:1em}

/* 게시판용 버튼 */
a.btn_b01,.btn_b01 {display:inline-block;color:#bababa;text-decoration:none;vertical-align:middle;border:0;background:transparent}
.btn_b01:hover, .btn_b01:hover {color:#000}
a.btn_b02,.btn_b02 {display:inline-block;background:#4C6FD1;padding:0 10px;color:#fff;text-decoration:none;border:0;vertical-align:middle}
a.btn_b02:hover, .btn_b02:hover {background:#6485E0}
a.btn_b03, .btn_b03 {display:inline-block;background:#fff;border:1px solid #B7BEDD;color:#6670A0;text-decoration:none;vertical-align:middle}
a.btn_b03:hover, .btn_b03:hover {background:#EEF0FB}
a.btn_b04, .btn_b04 {display:inline-block;background:#fff;border:1px solid #ccc;color:#707070;text-decoration:none;vertical-align:middle}
a.btn_b04:hover, .btn_b04:hover {color:#333;background:#f9f9f9}
a.btn_admin,.btn_admin {display:inline-block;color:#d13f4a;text-decoration:none;vertical-align:middle} /* 관리자 전용 버튼 */
.btn_admin:hover, a.btn_admin:hover {color:#ff3746}

/* 기본테이블 */
.tbl_wrap {overflow-x:auto}
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0 5px;background:#fff;border-top:1px solid #ececec;border-bottom:1px solid #ececec}
.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left}
.tbl_head01 {margin:0 0 10px}
.tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
.tbl_head01 thead th {padding:20px 0;font-weight:normal;text-align:center;border-bottom:1px solid #ececec;height:40px}
.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
.tbl_head01 tfoot th, .tbl_head01 tfoot td {padding:10px 0;border-top:1px solid #c1d1d5;border-bottom:1px solid #c1d1d5;background:#d7e0e2;text-align:center}
.tbl_head01 tbody th {padding:8px 0;border-bottom:1px solid #e8e8e8}
.tbl_head01 td {color:#666;padding:10px 5px;border-top:1px solid #ecf0f1;border-bottom:1px solid #ecf0f1;line-height:1.4em;height:60px;word-break:break-all}
.tbl_head01 tbody tr:hover td {background:#fafafa}
.tbl_head01 a:hover {text-decoration:underline}

.tbl_head02 {margin:0 0 10px}
.tbl_head02 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
.tbl_head02 thead th {padding:5px 0;border-top:1px solid #d1dee2;border-bottom:1px solid #d1dee2;background:#e5ecef;color:#383838;font-size:0.95em;text-align:center;letter-spacing:-0.1em}
.tbl_head02 thead a {color:#383838}
.tbl_head02 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
.tbl_head02 tfoot th, .tbl_head02 tfoot td {padding:10px 0;border-top:1px solid #c1d1d5;border-bottom:1px solid #c1d1d5;background:#d7e0e2;text-align:center}
.tbl_head02 tbody th {padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#fff}
.tbl_head02 td {padding:5px 3px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#fff;line-height:1.4em;word-break:break-all}
.tbl_head02 a {}

/* 폼 테이블 */
.tbl_frm01 {margin:0 0 20px}
.tbl_frm01 table {width:100%;border-collapse:collapse;border-spacing:0}
.tbl_frm01 th {width:70px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f5f8f9;text-align:left}
.tbl_frm01 td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
.wr_content textarea,.tbl_frm01 textarea,.form_01 textarea, .frm_input {border:1px solid #d0d3db;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;
-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
}
.tbl_frm01 textarea {padding:2px 2px 3px}
.frm_input {height:40px}

.full_input {width:100%}
.half_input {width:49.5%}
.twopart_input {width:385px;max-width:100%;margin-right:10px}
.tbl_frm01 textarea, .write_div textarea {width:100%;height:100px}
.tbl_frm01 a {text-decoration:none}
.tbl_frm01 .frm_file {display:block;margin-bottom:5px}
.tbl_frm01 .frm_info {display:block;padding:0 0 5px;line-height:1.4em}

/*기본 리스트*/
.list_01 ul {border-top:1px solid #ececec}
.list_01 li {border-bottom:1px solid #ececec;background:#fff;padding:10px 15px;list-style:none;position:relative}
.list_01 li:nth-child(odd) {background:#f6f6f6}
.list_01 li:after {display:block;visibility:hidden;clear:both;content:""}
.list_01 li:hover {background:#f9f9f9}
.list_01 li.empty_li {text-align:center;padding:20px 0;color:#666}

/*폼 리스트*/
.form_01 h2 {font-size:1.167em}
.form_01 li {margin-bottom:10px}
.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:50px 0 !important;text-align:center}
.empty_list {padding:20px 0 !important;color:#666;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:#5d910b}
.txt_done {color:#e8180c}
.txt_expired {color:#ccc}
.txt_rdy {color:#8abc2a}

/* 새창 기본 스타일 */
.new_win {position:relative}
.new_win .tbl_wrap {margin:0 20px}
.new_win #win_title {font-size:1.3em;height:50px;line-height:30px;padding:10px 20px;background:#fff;color:#000;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.1);
-moz-box-shadow:0 1px 10px rgba(0,0,0,.1);
box-shadow:0 1px 10px rgba(0,0,0,.1)}
.new_win #win_title .sv {font-size:0.75em;line-height:1.2em}
.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:#fff;text-align:center;padding:0 10px;border:1px solid #DCE2FA;border-radius:30px;margin-left:5px}
.new_win .win_ul li:first-child {margin-left:0}
.new_win .win_ul li a {display:block;padding:8px 0;color:#7C93E8}
.new_win .win_ul .selected {background:#7B95EA;border-color:#7B95EA;position:relative;z-index:5}
.new_win .win_ul .selected a {color:#fff;font-weight:bold}
.new_win .win_desc {position:relative;margin:10px;border-radius:5px;font-size:1em;background:#f2838f;color:#fff;line-height:50px;text-align:left;padding:0 20px}
.new_win .win_desc i {font-size:1.2em;vertical-align:baseline}
.new_win .win_desc:after {content:"";position:absolute;left:0;top:0;width:4px;height:50px;background:#da4453;border-radius:3px 0 0 3px}
.new_win .frm_info {font-size:0.92em;color:#919191}
.new_win .win_total {float:right;display:inline-block;line-height:30px;font-weight:normal;font-size:0.75em;color:#7B95EA;background:#f6f6f6;padding:0 10px;border-radius:5px}
.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;margin:10px 0}
.new_win .btn_close {height:45px;width:60px;overflow:hidden;cursor:pointer}
.new_win .btn_submit {padding:0 20px;height:45px;font-weight:bold;font-size:1.083em}

/* 검색결과 색상 */
.sch_word {color:#fff;background:#fd8c3a;padding:2px 5px 3px;line-height:18px;margin:0 2px}

/* 자바스크립트 alert 대안 */
#validation_check {margin:100px auto;max-width:500px}
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
#validation_check p {margin-bottom:20px;padding:30px 20px;border:1px solid #e9e9e9;background:#fff}

/* 사이드뷰 */
.sv_wrap {position:relative;font-weight:normal}
.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;font-size:0.92em;background:#333;
-webkit-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
-moz-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2)}
.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 #333 transparent}
.sv_wrap .sv a {display:inline-block;margin:0;padding:0 10px;line-height:30px;width:100px;font-weight:normal;color:#bbb}
.sv_wrap .sv a:hover {background:#000;color:#fff}
.sv_member {color:#333}
.sv_on {display:block !important;position:absolute;top:23px;left:0px;width:auto;height:auto}
.sv_nojs .sv {display:block}

/* 페이징 */
.pg_wrap {clear:both;display:block;text-align:center;padding:10px 0}
.pg_wrap:after {display:block;visibility:hidden;clear:both;content:""}
.pg {text-align:center}
.pg_page, .pg_current {display:inline-block;vertical-align:middle;background:#eee;border:1px solid #eee}
.pg a:focus, .pg a:hover {text-decoration:none}
.pg_page {color:#959595;font-size:1.083em;height:30px;line-height:28px;padding:0 5px;min-width:30px;text-decoration:none;border-radius:3px}
.pg_page:hover {background-color:#fafafa}
.pg_start {text-indent:-999px;overflow:hidden;background:url('../img/btn_first.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
.pg_prev {text-indent:-999px;overflow:hidden;background:url('../img/btn_prev.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
.pg_end {text-indent:-999px;overflow:hidden;background:url('../img/btn_end.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
.pg_next {text-indent:-999px;overflow:hidden;background:url('../img/btn_next.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
.pg_start:hover,.pg_prev:hover,.pg_end:hover,.pg_next:hover {background-color:#fafafa}

.pg_current {display:inline-block;background:#7B95EA;border:1px solid #7B95EA;color:#fff;font-weight:bold;height:30px;line-height:30px;padding:0 10px;min-width:30px;border-radius:3px}

/* 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;
}

/* ============================================================
   반응형 표: 목록형 표(.tbl_head01 / .tbl_head02)는 1024px 미만에서
   각 <td>에 지정한 data-label 속성을 이용해 카드형으로 접힙니다.
   (게시판/문의 목록 스킨에서 <td data-label="..."> 로 사용)
   ============================================================ */
@media (max-width: 1023.98px) {
    .tbl_head01 table, .tbl_head01 tbody, .tbl_head01 tr,
    .tbl_head02 table, .tbl_head02 tbody, .tbl_head02 tr {display:block;width:100%}
    .tbl_head01 thead, .tbl_head02 thead {position:absolute;top:-9999px;left:-9999px}
    .tbl_head01 tr {border:1px solid #e5ecee;border-radius:4px;margin-bottom:8px;padding:6px 0}
    .tbl_head02 tr {border-bottom:1px solid #e9e9e9}
    .tbl_head01 td, .tbl_head02 td {display:block;width:100% !important;height:auto !important;border:0 !important;padding:6px 10px 6px 42%;position:relative;text-align:right}
    .tbl_head01 td:before, .tbl_head02 td:before {content:attr(data-label);position:absolute;left:10px;width:36%;padding-right:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-weight:bold;color:#888}
    .tbl_head01 td.td_subject, .tbl_head02 td.td_subject {padding-left:10px;text-align:left}
    .tbl_head01 td.td_subject:before, .tbl_head02 td.td_subject:before {display:none}
    .tbl_head01 td[data-label=""], .tbl_head02 td[data-label=""] {padding-left:10px}
    .tbl_head01 td[data-label=""]:before, .tbl_head02 td[data-label=""]:before {display:none}
}

/* ============================================================
   1024px 미만: 모바일 레이아웃
   ============================================================ */
@media (max-width: 1023.98px) {
    #hd_wrapper {padding:8px 10px}
    #logo {margin:0}
    #logo .logo_pc {display:none}
    #logo .logo_mobile {display:inline-block}

    #main_bn_box {margin:10px}

    #wrapper {padding:0 10px}

    .idx_cnt {gap:16px}

    #ft_copy #ft_totop {display:none} /* 우측 하단 top_btn 과 중복되어 모바일에서는 숨김 */

    /* 폼 테이블은 좁은 화면에서 라벨-값을 세로로 쌓음 */
    .tbl_frm01 th {display:block;width:100%;border-right:0;border-bottom:0}
    .tbl_frm01 td {display:block;width:100%}
    .tbl_frm01 table, .tbl_frm01 tbody, .tbl_frm01 tr {display:block;width:100%}
    .half_input, .twopart_input {width:100%;margin-right:0}
}

/* ============================================================
   1024px 이상: 데스크톱 레이아웃
   ============================================================ */
@media (min-width: 1024px) {
    #hd_top {display:block}

    #hd_wrapper {padding:8px 15px}
    #logo {margin:0 65px 0 0}
    #logo .logo_pc {display:inline-block}
    #logo .logo_mobile {display:none}

    #gnb_open, #gnb_close {display:none}
    #hd_nb {display:none}

    #gnb {display:flex !important;order:1;flex-basis:auto;position:static;width:auto;max-width:none;height:auto;overflow:visible;background:transparent;box-shadow:none;align-items:center}
    .gnb_login_link {display:none}
    #gnb_1dul {display:flex;background:transparent;border-top:0}
    #gnb_1dul a {color:#fff}
    #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
    .gnb_1dli {line-height:normal;text-align:center}
    .gnb_1dli button.btn_gnb_op {display:none}
    .gnb_1da {display:inline-block;padding:0 15px;height:35px;line-height:35px;border-bottom:0;font-weight:bold;font-size:13px}
    .gnb_2dul {display:none;position:absolute;top:100%;left:0;width:180px;background:#fff;z-index:50;
    -webkit-box-shadow:0 4px 10px rgba(0,0,0,.15);
    -moz-box-shadow:0 4px 10px rgba(0,0,0,.15);
    box-shadow:0 4px 10px rgba(0,0,0,.15)}
    .gnb_1dli:hover .gnb_2dul {display:block}
    .gnb_2da {padding:13px 10px;color:#333}
    .gnb_2da:hover {background:#eef0fb}

    #hd_sch_wrap {order:2;flex:0 0 auto;width:320px;margin:0 0 0 25px;position:relative}
    #hd_sch {border-color:#3D5BC0}

    #main_bn_box {max-width:900px;margin:0 auto 30px;height:160px;max-height:160px}

    #wrapper {flex-direction:row;align-items:flex-start;flex-wrap:nowrap;gap:0 20px}
    #aside {order:2;flex:0 0 280px;width:280px;margin-top:0}
    #container {order:1;flex:1 1 auto;min-width:0;max-width:900px}

    .idx_cnt {grid-template-columns:1fr 1fr;gap:20px}

    #ft_copy #ft_totop {display:inline-block}
}

/* ============================================================
   헤더 스타일 2 (중앙정렬형)
   theme.config.php 의 G5_HEADER_STYLE 값을 2로 설정하면
   <header id="hd" class="hd_style2">가 렌더링되어 아래 규칙이 적용됨.
   로고+검색창을 가운데 정렬하고 양옆에 광고 배너 자리를 두며,
   메뉴는 그 아래 전체 폭 줄로 분리됨. 배너 자리는 PC/모바일 모두 노출.
   광고를 실제로 넣을 때는 최고관리자(또는 회원레벨 9 이상)가 "배너 관리"
   페이지(banner_admin.php)에서 등록/삭제/순서/체류시간/전환속도를 관리함.
   ============================================================ */
.hd_ad_slot {display:none}

#hd.hd_style2 .hd_ad_slot {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:60px;
    margin:8px 0;
    border:1px dashed #d5dae2;
    border-radius:8px;
    background:#f7f8fb;
    color:#9aa1ac;
    font-size:12px;
    overflow:hidden;
}
#hd.hd_style2 .hd_ad_slot.hd_ad_empty {display:none}
#hd.hd_style2 .hd_ad_slot .swiper-container,
#hd.hd_style2 .hd_ad_slot .swiper-slide {width:100%;height:100%}
#hd.hd_style2 .hd_ad_slot a {display:block;width:100%;height:100%}
#hd.hd_style2 .hd_ad_slot img {display:block;width:100%;height:100%;object-fit:cover}

/* 헤더 전체 배경은 흰색으로, 파란 배경은 아래쪽 메뉴 줄(#gnb)에만 별도로 적용 */
#hd.hd_style2 {background:#fff}
/* 모바일: 로고 + 검색창 + 메뉴버튼을 한 줄에 붙여서 배치 (검색창은 남은 폭만큼만 차지하며 자동으로 줄어듦) */
#hd.hd_style2 #hd_wrapper {display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;background:#fff}
#hd.hd_style2 #logo {order:1;margin:0;flex:0 0 auto}
#hd.hd_style2 #logo .logo_mobile img {max-height:28px}
#hd.hd_style2 #hd_sch_wrap {order:2;flex:1 1 0%;min-width:0;margin-top:0}
#hd.hd_style2 #gnb_open {order:3;flex:0 0 auto;padding:0 6px;color:#4C6FD1}
/* 배너 자리(있을 경우)는 로고/검색창/메뉴버튼 줄과 겹치지 않도록 항상 다음 줄로 */
#hd.hd_style2 .hd_ad_slot {order:4;flex-basis:100%}

@media (max-width: 1023.98px) {
    #hd.hd_style2 .hd_ad_slot {height:50px;margin:6px 0}
}

/* 아이폰 mini 등 아주 좁은 화면: 검색창 안쪽 여백까지 더 줄여서 로고+검색창+메뉴버튼이 한 줄에 남게 함 */
@media (max-width: 380px) {
    #hd.hd_style2 #hd_sch_wrap {flex-basis:0}
    #hd.hd_style2 #hd_sch #sch_stx {padding:0 34px 0 10px;font-size:0.92em}
    #hd.hd_style2 #hd_sch #sch_submit {width:30px}
    #hd.hd_style2 #logo .logo_mobile img {max-height:24px}
    #hd.hd_style2 #gnb_open {font-size:1.4em}
}

@media (min-width: 1024px) {
    /* 로고+검색창 줄과 메뉴 줄을 명확히 분리된 두 행(grid row)으로 정의해서,
       광고 배너 자리의 세로 중앙정렬이 헤더 전체가 아니라 정확히 첫 번째 행에만
       걸리도록 함 (position:absolute 방식은 기준 상자가 애매해져서 겹침이 생겼음) */
    #hd.hd_style2 #hd_wrapper {
        display:grid;
        grid-template-columns:1fr auto auto 1fr;
        grid-template-rows:auto auto;
        align-items:center;
        column-gap:20px;
    }
    #hd.hd_style2 #hd_ad_left {grid-column:1;grid-row:1;margin:0}
    #hd.hd_style2 #hd_ad_right {grid-column:4;grid-row:1;margin:0}
    #hd.hd_style2 #logo {grid-column:2;grid-row:1;margin:0}
    #hd.hd_style2 #hd_sch_wrap {grid-column:3;grid-row:1;width:360px}
    #hd.hd_style2 #gnb_open {display:none}

    #hd.hd_style2 #gnb {
        grid-column:1 / -1;
        grid-row:2;
        width:auto;
        max-width:none;
        margin-left:calc(50% - 50vw);
        margin-right:calc(50% - 50vw);
        margin-top:12px;
        background:#4C6FD1;
    }
    #hd.hd_style2 #gnb_1dul {max-width:1200px;margin:0 auto;justify-content:center}
}

/* ============================================================
   배너 통합관리 페이지 (banner_admin.php, 최고관리자 전용)
   ============================================================ */
.bm_tabs {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;border-bottom:1px solid #e5ecee;padding-bottom:15px}
.bm_tabs a {display:inline-block;padding:8px 16px;border:1px solid #dde4e9;border-radius:20px;color:#666;font-size:0.92em}
.bm_tabs a:hover {background:#f5f8f9}
.bm_tabs a.on {background:#4C6FD1;border-color:#4C6FD1;color:#fff;font-weight:bold}

.bm_wrap section {margin-bottom:30px;padding:20px;border:1px solid #edf0f7;border-radius:14px;background:#fff}
.bm_wrap h2 {margin-bottom:15px;font-size:15px;font-weight:bold;padding-left:10px;border-left:3px solid #4C6FD1}
.bm_hint {margin-top:10px;font-size:0.85em;color:#999;line-height:1.5em}

.bm_size_info {background:#f4f7ff;border-color:#dbe4fb}
.bm_size_reco {font-size:0.98em;font-weight:bold;color:#3D5BC0}
.bm_size_reco i {margin-right:5px}

.bm_settings form {display:flex;flex-wrap:wrap;align-items:center;gap:15px}
.bm_settings label {display:flex;align-items:center;gap:8px;font-size:0.92em;color:#555}
.bm_settings input[type="number"] {width:100px;height:36px;padding:0 8px;border:1px solid #d0d3db;border-radius:4px}

.bm_empty {color:#999;padding:20px 0;text-align:center}
.bm_list ul {border-top:1px solid #ececec}
.bm_list li {display:flex;align-items:center;gap:15px;padding:12px 5px;border-bottom:1px solid #ececec}
.bm_thumb {flex:0 0 100px;width:100px;height:60px;border-radius:6px;overflow:hidden;background:#f4f4f4}
.bm_thumb img {display:block;width:100%;height:100%;object-fit:cover}
.bm_info {flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.bm_info strong {font-size:0.95em;color:#333}
.bm_info em {font-style:normal;font-size:0.85em;color:#999;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bm_order_btns {flex:0 0 auto;display:flex;align-items:center;gap:5px}
.bm_inline {display:inline-flex;gap:5px}
.bm_order_btns button {width:32px;height:32px;line-height:32px;padding:0;text-align:center}
.bm_order_btns button[disabled] {opacity:0.3;cursor:default}

.bm_add p {margin-bottom:12px}
.bm_add label {display:block;margin-bottom:5px;font-size:0.92em;color:#555}
.bm_add input[type="text"] {width:100%;max-width:400px;height:38px;padding:0 10px;border:1px solid #d0d3db;border-radius:4px}
.bm_add input[type="file"] {display:block}

@media (max-width: 1023.98px) {
    .bm_wrap section {padding:16px}
    .bm_list li {flex-wrap:wrap}
    .bm_thumb {flex:0 0 80px;width:80px;height:48px}
}
