@charset "utf-8";

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* 초기화 */
html {overflow-y:scroll; scroll-padding-bottom: 80px;}
body {margin:0;padding:0;font-size:0.75em;font-family:'Pretendard', 'Malgun Gothic', dotum, sans-serif;background:#F5F5F7; overflow-x:hidden; width:100%; max-width:100%;}
#wrapper {min-height: calc(100vh - 200px);}
#ft {flex-shrink: 0; height: auto; overflow: visible;}
.footer-inner {max-width: 1200px; margin: 0 auto; display: block;}
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', 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:'Pretendard', 'Malgun Gothic', dotum, sans-serif;font-size:1em}
input[type="submit"] {cursor:pointer}
button {cursor:pointer}
textarea, select {font-family:'Pretendard', 'Malgun Gothic', dotum, sans-serif;font-size:1em}
select {margin:0}
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}
*, :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 #9ed4ff; -moz-box-shadow:0 0 5px #9ed4ff; box-shadow:0 0 5px #9ed4ff; border:1px solid #558ab7 !important;}
.placeholdersjs {color:#aaa !important}

/* 레이아웃 크기 지정 */

/* 모든 영역 1200px로 통일 */
#wrapper, #ft {min-width: 0;}
#hd_pop {max-width: 1200px; margin: 0 auto;}
#ft_wr {max-width: 1200px; margin: 0 auto; padding: 0 24px;}

/* 공통 - display none/block */
.is-hidden { display: none !important; }
.is-visible { display: block !important; }

/* 공통 - 뷰포트 (pc / mobile) 별 display none/block */
.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-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(74, 74, 90, 0.18);
  border: 1px solid rgba(45,106,79,0.12);
  background: #fff;
}
.hd_pops img { max-width: 100%; display: block; }
.hd_pops_con { overflow: auto; box-sizing: border-box; padding: 14px; }

.hd_pops_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: #2A2A3E;
  position: relative;
}
.hd_pops_footer:after { display: block; visibility: hidden; clear: both; content: ""; }

.hd_pops_footer button {
  padding: 10px 14px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.hd_pops_footer button:hover { color: #fff; background: rgba(255,255,255,0.1); }

.hd_pops_footer .hd_pops_reject,
.hd_pops_footer .hd_pops_reject_week {
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
}
.hd_pops_footer .hd_pops_reject:hover,
.hd_pops_footer .hd_pops_reject_week:hover { color: #fff; }

.hd_pops_footer .hd_pops_close {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.1) !important;
}
.hd_pops_footer .hd_pops_close:hover { background: rgba(255,107,138,0.3); color: #fff; }

.hd_pops_footer_left {
  display: flex;
  align-items: center;
  padding-right: 80px;
}

/* ========== 헤더 전체 영역 ========== */
#hd {background: rgba(248, 248, 252, 0.97); border-bottom: 1px solid rgba(74, 74, 90, 0.10); width: 100%; margin: 0; padding: 0;}
#hd_h1 {position: absolute; font-size: 0; line-height: 0; overflow: hidden;}
#hd_wrapper {position: relative; margin: 0 auto; width: 100%; max-width: 1200px;  /* 1600px -> 1200px */ height: 120px; display: flex; align-items: center; justify-content: flex-start; padding: 0 32px; gap: 20px; box-sizing: border-box; flex-wrap: nowrap;}

/* ========== 로고 영역 ========== */
#logo {float: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 9px; flex-shrink: 0; order: 1;}
#logo a {display: flex; align-items: center; gap: 9px; text-decoration: none;}
#logo img {width: 280px; height: 110px; object-fit: contain;}


/* ========== 검색 영역 ========== */
.hd_sch_wr {float: none; padding: 0; width: auto; margin: 0; flex-shrink: 0; order: 3; margin-left: auto;}
#hd_sch {border-radius: 20px; overflow: visible; position: relative;}
#hd_sch h3,
#hd_sch legend {position: absolute; left: -9999px; font-size: 0; line-height: 0; overflow: hidden;}
#hd_sch form {display: flex; align-items: center; background: #F5F5F7; border: 1px solid #E0E0E8; border-radius: 24px; padding: 9px 20px; gap: 9px;}

/* 검색 아이콘 */
.search_icon {font-size: 1.05rem; color: #5A5A6E; flex-shrink: 0;}

/* 검색 입력창 */
#hd_sch #sch_stx {float: none; width: 200px; height: auto; padding: 0; border: none; border-radius: 0; background: transparent; font-family: 'Gowun Dodum', sans-serif; font-size: 0.95rem; color: #1A1A2E; outline: none;}
#hd_sch #sch_stx::placeholder {color: #5A5A6E;}

/* 검색 버튼 */
#hd_sch #sch_submit {float: none; width: 0; height: 0; padding: 0; border: none; background: transparent; cursor: pointer; font-size: 0; overflow: hidden;}

/* sound_only 숨김 */
.sound_only {position: absolute; left: -9999px; width: 0; height: 0; font-size: 0; line-height: 0; overflow: hidden;}

/* ========== 반응형 (PC 창 크기 조절) ========== */

/* 1420px 이하 - 패딩 줄이기 */

@media(max-width: 1420px) {
#hd_wrapper {padding: 0 20px; gap: 15px;}
}

/* 1300px 이하 */

@media(max-width: 1300px) {
#hd_wrapper {padding: 0 15px; gap: 12px;}
#hd_sch #sch_stx {width: 185px;}
}

/* 1200px 이하 */

@media(max-width: 1200px) {
#logo img {width: 240px; height: 95px;}
#hd_wrapper {padding: 0 15px; gap: 10px;}
#hd_sch #sch_stx {width: 165px; font-size: 0.78rem;}
}

/* 1100px 이하 */

@media(max-width: 1100px) {
#logo img {width: 210px; height: 83px;}
#hd_sch #sch_stx {width: 150px; font-size: 0.76rem;}
}

/* 1000px 이하 */

@media(max-width: 1000px) {
#hd_wrapper {padding: 0 12px; gap: 8px;}
#logo img {width: 180px; height: 71px;}
#hd_sch #sch_stx {width: 135px; font-size: 0.72rem;}
}

/* 900px 이하 */

@media(max-width: 900px) {
#hd_wrapper {padding: 0 10px; gap: 6px;}
#logo img {width: 160px; height: 63px;}
#hd_sch #sch_stx {width: 120px; font-size: 0.68rem;}
.search_icon {font-size: 0.9rem;}
}

/* 860px 이하 */

@media(max-width: 860px) {
#hd_wrapper {padding: 0 10px; gap: 5px;}
#logo img {width: 140px; height: 55px;}
#hd_sch #sch_stx {width: 105px; font-size: 0.65rem;}
.search_icon {font-size: 0.85rem;}
}

/* ============================== */
/* 위로 문구 마키 */
/* ============================== */

.healing-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 0 20px;
    padding: 14px 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #F8F8FC);
    border: 1px solid rgba(74, 74, 90, 0.08);
    box-shadow: 0 2px 12px rgba(74, 74, 90, 0.05);
}

.healing-marquee::before,
.healing-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.healing-marquee::before {
    left: 0;
    background: linear-gradient(to right, #EFEFF5, transparent);
}

.healing-marquee::after {
    right: 0;
    background: linear-gradient(to left, #EFEFF5, transparent);
}

.healing-marquee-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-width: 200%;
    will-change: transform;
    animation: healingMarquee 38s linear infinite;
}

.healing-marquee-inner span {
    flex-shrink: 0;
    margin-right: 48px;
    font-size: 0.88rem;
    color: #5A5A6E;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.healing-marquee:hover .healing-marquee-inner {
    animation-play-state: paused;
}

@keyframes healingMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 모바일 */
@media (max-width: 768px) {

    .healing-marquee {
        padding: 12px 0;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .healing-marquee-inner span {
        font-size: 0.78rem;
        margin-right: 32px;
    }

    .healing-marquee::before,
    .healing-marquee::after {
        width: 40px;
    }
}

/* ============================== */

/* 히어로 섹션 스타일 */

/* ============================== */

/* 히어로 섹션 래퍼 */
.hero-section-wrap {margin-bottom: 20px;}

/* ========== 위로 문구 띠 ========== */
.comfort-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #EFEFF5 0%, #E4E4EE 50%, #EFEFF5 100%);
    border: 1px solid #C8C8D8;
    border-radius: 40px;
    padding: 8px 24px;
    margin: 0 auto 4px;
    text-align: center;
    animation: comfort-fadein 0.8s ease;
}
@keyframes comfort-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.comfort-text {
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 0.82rem;
    color: #4A4A5A;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.comfort-leaf {
    font-size: 0.85rem;
    flex-shrink: 0;
    opacity: 0.7;
}
@media(max-width: 768px) {
    .comfort-strip { padding: 10px 16px; border-radius: 30px; gap: 8px; }
    .comfort-text  { font-size: 0.78rem; }
}

/* ========== 로그아웃 상태 히어로 배너 ========== */
.hero-banner {background: white; border-radius: 16px; padding: 24px 28px; box-shadow: 0 4px 24px rgba(74, 74, 90, 0.10); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; max-width: 100%; margin: 0 auto 14px; position: relative; overflow: hidden;}
.hero-content {display: flex; flex-direction: column; position: relative; z-index: 1;}
.hero-badges {display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;}
.badge {padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; white-space: nowrap;}
.badge-r {background: #FFE4EA; color: #FF6B8A;}
.badge-g {background: #EEEEF5; color: #5A5A8A;}
.badge-b {background: #E8E8F5; color: #2277CC;}
.badge-p {background: #EEE8FF; color: #7C5CBF;}
.hero-title {font-family: 'Nanum Myeongjo', serif; font-size: 1.6rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: #1A1A2E;}
.hero-title .hl {background: linear-gradient(90deg, #8B8BBB, #4DABF7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;}
.hero-desc {font-size: 0.85rem; color: #5A5A6E; line-height: 1.7; margin-bottom: 14px;}
.hero-btns {display: flex; gap: 8px;}
.hero-btn {padding: 8px 20px; border-radius: 20px; font-family: 'Gowun Dodum', sans-serif; font-size: 0.85rem; font-weight: 400; cursor: pointer; border: none; text-decoration: none; display: inline-block; transition: all 0.2s ease;}
.hero-btn-primary {background: linear-gradient(135deg, #6A6A82, #4A4A5A); color: white; box-shadow: 0 2px 10px rgba(74, 74, 90, 0.25);}
.hero-btn-primary:hover {transform: translateY(-2px); box-shadow: 0 4px 15px rgba(74, 74, 90, 0.35);}
.hero-btn-outline {background: transparent !important; border: 1.5px solid #6A6A82 !important; color: #4A4A5A !important;}
.hero-btn-outline:hover {background: #F5F5F7 !important; border-color: #4A4A5A !important;}
.hero-btn-kakao {background: #FEE500; color: #191919 !important;}
.hero-btn-kakao:hover {transform: translateY(-2px); box-shadow: 0 4px 15px rgba(254, 229, 0, 0.45);}
/* 부가 기능(테스트)이라는 인상을 주도록 채워진 배경 대신 아웃라인 톤으로 조정 */
.hero-btn-test {background: transparent; color: #7C5CBF !important; border: 1.5px solid #D8CBF0;}
.hero-btn-test:hover {background: #F3EEFF; border-color: #B9A3E3; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(124, 92, 191, 0.18);}
.hero-btn-test-sm {font-size: 0.78rem; padding: 6px 14px;}
.hero-login-kakao {display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #E0E0E8;}
.hero-btn-kakao-sm {font-size: 0.78rem; padding: 6px 14px;}
.hero-stats {display: flex; flex-direction: column; gap: 8px; align-items: flex-end; position: relative; z-index: 1;}
.hero-stat {text-align: right;}
.hero-stat-num {font-family: 'Nanum Myeongjo', serif; font-size: 1.2rem; font-weight: 700; color: #4A4A5A;}
.hero-stat-label {font-size: 0.68rem; color: #5A5A6E;}

/* 마스코트 캐릭터 - 배너 우측 하단에 살짝 걸치듯 배치 */
.hero-character {position: absolute; right: 130px; bottom: 44px; height: 82px; width: auto; z-index: 1; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(74, 74, 90, 0.18));}

/* ========== 로그인 상태 인기글 섹션 ========== */
.hero-login {background: white; border-radius: 16px; padding: 24px 28px; box-shadow: 0 4px 24px rgba(74, 74, 90, 0.10); max-width: 100%; margin: 0 auto 20px;}
.hero-login-top {display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;}
.hero-welcome {font-family: 'Nanum Myeongjo', serif; font-size: 1.1rem; font-weight: 700; color: #1A1A2E;}
.hero-period {display: flex; gap: 6px;}
.hero-period button {padding: 4px 14px; border-radius: 14px; border: 1.5px solid #E0E0E8; background: white; font-family: 'Gowun Dodum', sans-serif; font-size: 0.78rem; color: #5A5A6E; cursor: pointer; transition: all 0.2s ease;}
.hero-period button.active {background: #4A4A5A; color: white; border-color: #4A4A5A;}
.hero-period button:hover:not(.active) {background: #F5F5F7;}

/* 인기글 목록 */
.popular-list {display: flex; flex-direction: column; gap: 8px;}
.popular-item {display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #F5F5F7; border-radius: 10px; text-decoration: none; transition: all 0.2s ease;}
.popular-item:hover {background: #E0E0E8; transform: translateX(4px);}
.popular-rank {font-family: 'Nanum Myeongjo', serif; font-size: 1.2rem; font-weight: 700; width: 24px; text-align: center; flex-shrink: 0;}
.popular-rank.r1 {color: #FF6B8A;}
.popular-rank.r2 {color: #FF9F6B;}
.popular-rank.r3 {color: #FFD166;}
.popular-board {font-size: 0.65rem; padding: 2px 7px; border-radius: 8px; background: white; color: #4A4A5A; white-space: nowrap; flex-shrink: 0;}
.popular-title {font-size: 0.85rem; color: #1A1A2E; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.popular-likes {font-size: 0.75rem; color: #FF6B8A; white-space: nowrap; flex-shrink: 0;}

/* 로딩 표시 */
.loading {padding: 40px 20px; text-align: center; color: #999; font-size: 0.85rem;}

/* ========== 반응형 ========== */

@media(max-width: 1200px) {
.hero-banner {grid-template-columns: 1fr; gap: 20px;}
.hero-stats {flex-direction: row; justify-content: space-around; align-items: center;}
.hero-stat {text-align: center;}
.hero-character {display: none;}
}

@media(max-width: 768px) {
.hero-banner,
.hero-login {padding: 20px; border-radius: 12px;}
.hero-title {font-size: 1.3rem;}
.hero-badges {gap: 4px;}
.badge {font-size: 0.68rem; padding: 2px 8px;}
.hero-login-top {flex-direction: column; align-items: flex-start; gap: 12px;}
.popular-item {gap: 8px; padding: 8px 12px;}
.popular-rank {font-size: 1rem; width: 20px;}
.popular-board {font-size: 0.6rem;}
.popular-title {font-size: 0.78rem;}
}

/* 중간 레이아웃 */

/* ========== 메인 레이아웃 ========== */
#wrapper {background: #F5F5F7;}
#container_wr {max-width: 1200px;  /* 1600px -> 1200px */ margin: 0 auto; padding: 24px; display: flex; gap: 24px;  /* 20px -> 24px */ align-items: flex-start;}

/* 메인 콘텐츠 영역 */
#container {flex: 1; min-height: 500px; margin: 0; font-size: 1em; width: auto; max-width: none;  /* 제한 제거 */}
#container:after {display: block; visibility: hidden; clear: both; content: "";}
#container_title {font-size: 1.333em; margin: 0 auto; font-weight: bold;}
#container_title span {margin: 0 auto 10px; display: block; line-height: 30px;}

/* 게시물 보기 - 게시판명 + 버튼 헤더 바 */
#container_title_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid rgba(45,106,79,0.12);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(45,106,79,0.06);
}
#container_title_wrap #container_title {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A2E;
}
#container_title_wrap #container_title span {
    margin: 0;
    line-height: 1;
    display: block;
}
#container_title_wrap #bo_v_top {
    position: static !important;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
/* 버튼 래퍼 */
#container_title_wrap .btn_bo_user.bo_v_com {
    display: inline-flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    float: none;
    background: transparent;
}
#container_title_wrap .btn_bo_user.bo_v_com li {
    float: none;
    margin: 0;
    background: transparent !important;
    border: none;
    width: auto;
    height: auto;
    line-height: normal;
}
/* 버튼 낱개 */
#container_title_wrap .btn_bo_user.bo_v_com .btn,
#container_title_wrap .btn_bo_user.bo_v_com .btn_b01,
#container_title_wrap .btn_bo_user.bo_v_com .btn_admin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #F5F5F7;
    border: 1px solid #E0E0E8;
    border-radius: 8px;
    font-size: 0.92em;
    color: #4A4A5A;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
#container_title_wrap .btn_bo_user.bo_v_com .btn:hover,
#container_title_wrap .btn_bo_user.bo_v_com .btn_b01:hover,
#container_title_wrap .btn_bo_user.bo_v_com .btn_admin:hover {
    background: #E0E0E8;
    border-color: #6A6A82;
    color: #2A2A3E;
}
/* 더보기(...) 드롭다운 위치 보정 */
#container_title_wrap .more_opt {
    top: 38px;
    right: 0;
}

/* 사이드바 영역 */
#aside {width: 240px;  /* 260px -> 240px */ flex-shrink: 0; padding: 0; margin: 0;}

/* ============================== */

/* 최신글 섹션 스타일 */

/* ============================== */

/* 섹션 제목 */
.section-title {font-family: 'Nanum Myeongjo', serif; font-size: 1rem; font-weight: 700; color: #1A1A2E; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; text-decoration: none;}
.section-title-link {cursor: pointer; transition: color 0.2s ease;}
.section-title-link:hover {color: #4A4A5A;}
.section-title::after {content: ''; flex: 1; height: 1px; background: #E0E0E8;}

/* 최신글 그리드 */
.latest-section {margin-bottom: 20px; max-width: 100%;}
.latest-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 12px;}

/* 최신글 카드 */
.latest-card {background: white; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(74, 74, 90, 0.06); display: flex; flex-direction: column; border: 1px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;}
.latest-card:hover {transform: translateY(-3px); box-shadow: 0 10px 24px rgba(74, 74, 90, 0.14); border-color: #E0E0E8;}
/* 대표 게시판 하나를 살짝 강조 (index.php에서 latest-card--featured 클래스로 지정) */
.latest-card--featured {border-color: #C8C8E0; box-shadow: 0 3px 12px rgba(107, 107, 170, 0.12);}
.latest-card--featured:hover {box-shadow: 0 10px 26px rgba(107, 107, 170, 0.22);}
.latest-card--featured .lat_title {font-size: 1.18em;}
.latest-card-tab { grid-column: 1 / -1; }

.latest-grid,
.latest-card,
#container {
    min-width: 0;
}

/* ========== 반응형 ========== */

@media(max-width: 1200px) {
.latest-grid {gap: 10px;}
.latest-card {padding: 14px;}
}

@media(max-width: 768px) {
.latest-grid {grid-template-columns: 1fr; gap: 12px;}
.latest-card {padding: 12px;}
}
.lt_wr {width:32%}
.lt_wr:nth-child(3n+1) {clear:both}
.latest_wr {margin-bottom:20px}
.latest_wr:after {display:block;visibility:hidden;clear:both;content:""}
.latest_top_wr {margin:0 -10px 20px}
.latest_top_wr:after {display:block;visibility:hidden;clear:both;content:""}

/* ============================== */

/* 사이드바 게시판 목록 스타일 */

/* ============================== */

/* 게시판 목록 박스 */
.sidebar-board {background: white; border-radius: 14px; border: 1px solid rgba(74, 74, 90, 0.10); box-shadow: 0 4px 24px rgba(74, 74, 90, 0.10); overflow: hidden; margin-bottom: 12px;}

/* 게시판 제목 */
.sidebar-board-title {background: #E0E0E8; padding: 10px 14px; font-size: 0.82rem; font-weight: 700; color: #4A4A5A;}

/* 게시판 리스트 */
.sidebar-board-list {padding: 8px 0;}
.sidebar-board-list a {display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; font-size: 0.8rem; color: #1A1A2E; text-decoration: none; transition: background 0.2s ease;}
.sidebar-board-list a:hover {background: #F5F5F7;}

/* 게시글 수 배지 */
.sidebar-board-list a span.cnt {font-size: 0.7rem; color: #6A6A82; background: #E0E0E8; padding: 1px 7px; border-radius: 10px; font-weight: 600; min-width: 20px; text-align: center; display: inline-block;}

/* ========== 반응형 ========== */

@media(max-width: 768px) {
.sidebar-board {border-radius: 12px;}
.sidebar-board-title {font-size: 0.78rem; padding: 8px 12px;}
.sidebar-board-list a {padding: 6px 12px; font-size: 0.78rem;}
.sidebar-board-list a span.cnt {font-size: 0.68rem;}
}

/* ============================== */

/* 사이드바 유틸리티 메뉴 스타일 */

/* ============================== */

/* 유틸리티 박스 */
.sidebar-utils {background: white; border-radius: 14px; border: 1px solid rgba(74, 74, 90, 0.10); box-shadow: 0 4px 24px rgba(74, 74, 90, 0.10); overflow: hidden; margin-bottom: 12px;}

/* 그리드 레이아웃 (2열 x 3행) */
.sidebar-utils-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 0;}

/* 유틸리티 아이템 */
.sidebar-util {padding: 11px 14px; font-size: 0.78rem; color: #5A5A6E; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 5px; border-bottom: 1px solid #E0E0E8; border-right: 1px solid #E0E0E8; transition: all 0.2s ease; text-align: center;}

/* 오른쪽 열은 오른쪽 보더 제거 */
.sidebar-util:nth-child(2n) {border-right: none;}

/* 마지막 행은 하단 보더 제거 */
.sidebar-util:nth-last-child(-n+2) {border-bottom: none;}

/* 호버 효과 */
.sidebar-util:hover {background: #F5F5F7; color: #4A4A5A;}

/* ========== 반응형 ========== */

@media(max-width: 768px) {
.sidebar-utils {border-radius: 12px;}
.sidebar-util {font-size: 0.75rem; padding: 9px 12px;}
}

/* ============================== */

/* 현재 접속자 스타일 */

/* ============================== */

/* 접속자 박스 */
.sidebar-access {background: white; border-radius: 14px; border: 1px solid rgba(74, 74, 90, 0.10); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 24px rgba(74, 74, 90, 0.10); margin-bottom: 12px;}

/* 접속자 라벨 */
.sidebar-access-label {font-size: 0.78rem; color: #5A5A6E; display: flex; align-items: center; gap: 5px;}

/* 접속자 수 */
.sidebar-access-count {font-size: 0.85rem; font-weight: 700; color: #4A4A5A; background: #E0E0E8; padding: 2px 10px; border-radius: 12px;}

/* ========== 반응형 ========== */

@media(max-width: 768px) {
.sidebar-access {border-radius: 12px; padding: 8px 12px;}
.sidebar-access-label {font-size: 0.75rem;}
.sidebar-access-count {font-size: 0.82rem;}
}

/* ============================== */

/* 푸터 스타일 */

/* ============================== */
#ft {background: #1A1A2E; color: rgba(255, 255, 255, 0.5); padding: 24px 32px; margin-top: 0; height: auto; overflow: visible;}
.footer-inner {max-width: 1200px; margin: 0 auto; display: block;}

/* 푸터 상단 */
.footer-top {display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 16px;}
.footer-info {font-size: 0.75rem; line-height: 1.9; color: rgba(255, 255, 255, 0.45);}
.footer-info strong {color: rgba(255, 255, 255, 0.75); margin-right: 6px;}
.footer-info > span {display: inline-block; word-break: keep-all;}
.footer-info > span + span::before {content: "|"; margin: 0 8px; color: rgba(255, 255, 255, 0.2);}
.footer-info a {color: rgba(255, 255, 255, 0.55); text-decoration: none; word-break: break-all;}
.footer-info a:hover {color: #8B8BBB; text-decoration: underline;}
.footer-links {display: flex; gap: 18px; flex-wrap: wrap;}
.footer-links a {font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.2s ease;}
.footer-links a:hover {color: #8B8BBB;}

/* 푸터 하단 */
.footer-bottom {display: flex; justify-content: space-between; align-items: center;}
.footer-logo {font-family: 'Comfortaa', serif; font-size: 1rem; color: white;}
.footer-copy {font-size: 0.7rem; color: rgba(255, 255, 255, 0.3);}
.footer-copy b {color: rgba(255, 255, 255, 0.5);}

/* 상단으로 버튼 */
#top_btn {position: fixed; right: 30px; bottom: 30px; width: 50px; height: 50px; background: linear-gradient(135deg, #6A6A82, #4A4A5A); color: white; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 12px rgba(74, 74, 90, 0.3); transition: all 0.3s ease; z-index: 9990;}
#top_btn {bottom: calc(30px + env(safe-area-inset-bottom, 0px));}
#top_btn:hover {transform: translateY(-3px); box-shadow: 0 6px 20px rgba(74, 74, 90, 0.4);}
#top_btn i {font-size: 1.2rem;}

/* iOS 안전 영역(홈바) 대응 */
#ft {padding-bottom: 24px;}

/* ========== 반응형 ========== */

@media(max-width: 1000px) {
.footer-top {flex-direction: column; gap: 12px;}
.footer-links {gap: 12px;}
}

@media(max-width: 768px) {
#ft {padding: 20px 16px 24px !important;}
.footer-info {font-size: 0.7rem; line-height: 1.7;}
.footer-links {gap: 10px;}
.footer-links a {font-size: 0.7rem;}
.footer-bottom {flex-direction: column; gap: 8px; align-items: flex-start;}
.footer-logo {font-size: 0.9rem;}
.footer-copy {font-size: 0.65rem;}
#top_btn {right: 20px; bottom: 20px; width: 45px; height: 45px;}
}

/* 게시물 선택복사 선택이동 */
#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:#ff3061;padding:5px;color:#fff;border-radius:3px}
.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}

/* 캡챠 자동등록(입력)방지 기본 -pc */
#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 #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}

/* 캡챠 자동등록(입력)방지 기본 - mobile */
#captcha.m_captcha audio {display:block;margin:0 0 5px;width:187px}
#captcha.m_captcha #captcha_img {width:160px;height:60px;border:1px solid #e9e9e9;margin-bottom:3px;margin-top:5px;display:block}
#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 #b8c9c2;background:#f7f7f7;font-size:1.333em;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.95em;letter-spacing:-0.1em}
#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: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 {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:#3a8afd;color:#fff;cursor:pointer;border-radius:3px}
.btn_submit:hover {background:#2375eb}
.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:#253dbe;padding:0 10px;color:#fff;text-decoration:none;border:0;vertical-align:middle}
a.btn_b02:hover, .btn_b02:hover {background:#0025eb}
a.btn_b03, .btn_b03 {display:inline-block;background:#fff;border:1px solid #b9bdd3;color:#646982;text-decoration:none;vertical-align:middle}
a.btn_b03:hover, .btn_b03:hover {background:#ebedf6}
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 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;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}
.frm_info.add_info { margin-top: 10px !important; padding: 8px 12px; background: #fff; border: 1px solid #ddd; border-radius: 6px; line-height: 1.6; }
.btn_info_toggle { display: block; margin: 5px 0 0 21px; font-size: 12px; color: #3f51b5; background: none; border: none; cursor: pointer; text-decoration: underline; }

/*기본 리스트*/
.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 #d6e9ff;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:#6794d3}
.new_win .win_ul .selected {background:#3a8afd;border-color:#3a8afd;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:#3a8afd;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}
.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:1.083em}

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

/* 자바스크립트 alert 대안 */
#validation_check {margin:100px auto;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;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;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:#3a8afd;border:1px solid #3a8afd;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;}

/* Mobile화면으로 */
#device_change {display:block;margin:0.3em;padding:0.5em 0;border:1px solid #eee;border-radius:2em;background:#fff;color:#000;font-size:2em;text-decoration:none;text-align:center}

/* ========== 메인 레이아웃 반응형 ========== */

/* 1200px 이하 - 사이드바 너비 줄이기 */

@media(max-width: 1200px) {
#container_wr {padding: 15px; gap: 15px;}
#aside {width: 260px;}
}

/* 1000px 이하 - 패딩 더 줄이기 */

@media(max-width: 1000px) {
#container_wr {padding: 12px; gap: 12px;}
#aside {width: 240px;}
}

/* 768px 이하 - 세로 레이아웃으로 전환 (#aside는 아래 슬라이드 패널 블록에서 처리) */

@media(max-width: 768px) {
#container_wr {flex-direction: column; padding: 10px; gap: 15px;}
#container {width: 100%;}
.latest-grid {grid-template-columns: 1fr;}
}

/* ============================================================
   ▼ 반응형 (Mobile / Tablet)
   - 모바일 페이지 미사용, 단일 테마 반응형 처리
   ============================================================ */

/* 햄버거 버튼은 PC에서 숨김 */
#gnb_open,
#aside_close,
#gnb_dim {display: none;}

/* ===== 1024px 이하 (태블릿) ===== */
@media (max-width: 1024px) {
    /* 검색바 줄여서 공간 확보 */
    #hd_sch #sch_stx {width: 110px;}
}

/* ===== 768px 이하 (모바일) ===== */
@media (max-width: 768px) {

    /* ----- 헤더 레이아웃 (한 줄: 햄버거 좌 / 로고 중앙) ----- */
    #hd_wrapper {
        height: 70px;
        min-height: 70px;
        padding: 0 16px 0 52px; /* 좌: 햄버거 버튼 자리, 우: 검색 자리 */
        gap: 0;
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    /* 로고 - 중앙 배치, 크게 */
    #logo {
        order: 1;
        margin: 0;
        flex: 0 0 auto;
    }
    #logo a {gap: 0;}
    #logo img {
        width: 220px;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* 햄버거 버튼 - 좌측, 키운 사이즈 */
    #gnb_open {
        display: flex;
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: transparent;
        cursor: pointer;
        transition: background 0.15s ease;
        z-index: 2;
    }
    #gnb_open:hover,
    #gnb_open:focus {background: #F5F5F7; outline: none;}
    #gnb_open:active {background: #E0E0E8;}
    #gnb_open span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: #4A4A5A;
        border-radius: 2px;
    }
    #gnb_open:hover {background: #E0E0E8;}
    #gnb_open span {
        display: block;
        width: 18px;
        height: 2px;
        background: #4A4A5A;
        border-radius: 2px;
    }


    /* ----- 사이드바(#aside)를 슬라이드 패널로 변환 ----- */
    #aside {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;       /* height 대신 top:0; bottom:0 으로 vh 계산 문제 회피 */
        width: 320px;
        max-width: 88vw;
        background: #F5F5F7;
        box-shadow: 2px 0 16px rgba(74, 74, 90, 0.18);
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
        /* 하단 padding을 넉넉히 + iOS 홈 인디케이터 safe-area 추가 */
        padding: 14px 14px calc(40px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        flex: none;
    }
    #aside.is-open {transform: translateX(0);}

    /* "나의 숲" 박스 우측에 닫기 버튼 자리 만들기 (헤더 텍스트와 안 겹치게) */
    #aside .login-box-header,
    #aside #ol_after .login-box-header,
    #aside #ol_before .login-box-header {
        padding-right: 48px;
    }

    /* 사이드바 닫기 버튼 - "나의 숲" 헤더 우측 정중앙
       헤더 안쪽 콘텐츠 중심 = aside.padding-top(14) + header.padding-top(12) + 아이콘높이(약 18)/2 = 35px
       버튼 28px의 중심을 35px에 맞추려면 top = 35 - 14 = 21px
    */
    #aside_close {
        display: flex;
        position: absolute;
        top: 21px;
        right: 22px;
        width: 28px;
        height: 28px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.25);
        font-size: 0;
        line-height: 1;
        color: transparent;
        cursor: pointer;
        z-index: 2;
        transition: background 0.15s ease;
    }
    /* X 모양을 ::before / ::after 두 개의 선으로 직접 그리기 (시인성 최고) */
    #aside_close::before,
    #aside_close::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        top: 50%;
        left: 50%;
    }
    #aside_close::before {transform: translate(-50%, -50%) rotate(45deg);}
    #aside_close::after  {transform: translate(-50%, -50%) rotate(-45deg);}
    #aside_close:hover,
    #aside_close:focus {
        background: rgba(0, 0, 0, 0.4);
        outline: none;
    }
    #aside_close:active {
        background: rgba(0, 0, 0, 0.5);
    }

    /* 사이드바 딤 (배경 어둡게) */
    #gnb_dim {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;     /* height 대신 top/bottom 모두 0 으로 가용영역 가득 */
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    #gnb_dim.is-open {opacity: 1; visibility: visible;}

    /* ----- 검색바 - 모바일에선 JS로 사이드바(#aside) 안 "나의 숲" 다음으로 이동됨 ----- */
    #aside .hd_sch_wr {
        width: 100%;
        margin: 0 0 12px;
        padding: 0;
    }
    #aside #hd_sch form {
        padding: 8px 14px;
        background: #fff;
        border: 1px solid #E0E0E8;
        border-radius: 22px;
    }
    #aside #hd_sch #sch_stx {
        width: 100%;
        flex: 1;
        font-size: 0.9rem;
        height: 28px;
    }

    /* ----- 컨테이너 (이미 정의됨, 보강) ----- */
    #container_wr {
        flex-direction: column;
        padding: 12px;
        gap: 16px;
    }
    #container {width: 100%; min-height: auto;}
    /* #aside는 위에서 슬라이드 패널로 처리됨 */

    /* ----- 히어로 (이미 정의됨, 보강) ----- */
    .hero-banner,
    .hero-login {padding: 18px 16px;}
    .hero-btns {flex-wrap: wrap;}
    .hero-btn {flex: 1; min-width: 120px;}

    /* ----- 최신글 섹션 ----- */
    .latest-grid {grid-template-columns: 1fr; gap: 10px;}
    .latest-card {padding: 14px;}

    /* ----- 사이드바 위젯들: 모바일에선 가로 폭 가득 ----- */
    .sidebar-board,
    .sidebar-utils,
    .sidebar-access {margin-bottom: 10px;}

    /* 유틸리티는 모바일에서도 2열 유지 (이미 그렇게 되어 있음) */

    /* ----- 푸터 ----- */
    #ft {
        padding: 20px 16px 48px !important;
        overflow: visible;
    }
    .footer-inner {overflow: visible;}
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .footer-info {font-size: 0.72rem; line-height: 1.8;}
    .footer-links {gap: 10px 16px;}
    .footer-links a {font-size: 0.72rem;}
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* ----- 상단 이동 버튼 ----- */
    #top_btn {
        right: 16px;
        bottom: 20px;
        width: 42px;
        height: 42px;
    }
    #top_btn i {font-size: 1rem;}

    /* ----- 게시판 테이블 가로 스크롤 ----- */
    .tbl_wrap {overflow-x: auto; -webkit-overflow-scrolling: touch;}
    .tbl_head01 td,
    .tbl_head01 thead th {padding: 8px 4px; font-size: 0.85em;}

    /* ----- 폼 테이블: 라벨/입력 세로 정렬 ----- */
    .tbl_frm01 table,
    .tbl_frm01 thead,
    .tbl_frm01 tbody,
    .tbl_frm01 tr,
    .tbl_frm01 th,
    .tbl_frm01 td {display: block; width: 100%; box-sizing: border-box;}
    .tbl_frm01 th {
        width: 100%;
        padding: 8px 10px;
        background: #F5F5F7;
        border: none;
        border-radius: 6px 6px 0 0;
    }
    .tbl_frm01 td {
        padding: 10px;
        border: 1px solid #e9e9e9;
        border-radius: 0 0 6px 6px;
        margin-bottom: 8px;
    }
    .frm_input {height: 38px; width: 100%;}
}

/* ===== 600px 이하 (핸드폰만) - 푸터 정보 줄바꿈 ===== */
/* 태블릿(600~768px대)은 한 줄 유지, 핸드폰만 항목별 줄바꿈 */
@media (max-width: 600px) {
    .footer-info > span {display: block;}
    .footer-info > span + span::before {content: none;}
    .footer-info > span + span {margin-top: 2px;}
    .footer-info strong {display: block; margin: 0 0 4px;}
}

/* ===== 480px 이하 (작은 모바일) ===== */
@media (max-width: 480px) {
    #hd_wrapper {height: 90px; min-height: 90px; padding: 0 16px 0 52px;}
    #logo img {width: 180px; height: auto;}
    #gnb_open {width: 40px; height: 40px; left: 12px;}
    #gnb_open span {width: 22px;}

    .hero-title {font-size: 1.15rem;}
    .hero-desc {font-size: 0.78rem;}
    .hero-btn {font-size: 0.78rem; padding: 7px 14px;}

    .section-title {font-size: 0.92rem;}
    .latest-card {padding: 12px;}

    #ft {padding: 18px 12px 24px !important;}
    .footer-info {font-size: 0.68rem;}
}


/* ============================================================
   ▼ 게시판(board) 모바일 오버라이드
   - skin/board/basic/style.css 가 모바일 미디어쿼리 없음
   - 768px 이하에서 어색한 부분 보정
   ============================================================ */

@media (max-width: 768px) {

    /* ----- 게시판 공통: 본문 여백/배경 ----- */
    #bo_v,
    #bo_w {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: 0 2px 12px rgba(74, 74, 90, 0.06);
    }
    /* list는 각 행이 카드라 부모 카드 불필요 */
    #bo_list,
    #bo_list > form,
    #bo_list .tbl_head01,
    #bo_list .tbl_wrap {
        background: transparent;
        padding: 0;
        margin-bottom: 16px;
        box-shadow: none;
        border: none;
    }

    /* ============================================================
       게시판 목록 (list) - 모바일 카드형
       전략: PC 마크업(테이블)을 모바일에선 카드 리스트처럼 보이게
       표시할 셀: td_subject(제목), td_name(작성자), td_datetime(날짜), 첫 td_num(조회수)
       숨길 셀: thead, td_num2(번호), td_chk(체크박스), 추천(2번째 td_num), 비추천(3번째 td_num)
       ============================================================ */

    /* 상단 영역: 전체 건수 + 도구 버튼 */
    #bo_list_total {
        font-size: 0.82em;
        line-height: 1.6;
        float: none;
        display: block;
        margin-bottom: 10px;
        color: #777;
    }
    .bo_fx {float: none; text-align: right; margin: 0 0 10px;}
    .bo_fx ul {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .btn_bo_user {float: none; margin: 0; padding: 0; background: transparent;}
    .btn_bo_user li {
        float: none;
        width: 38px;
        height: 38px;
        line-height: 38px;
        margin: 0;
        background: transparent !important; /* 게시판 스킨의 흰 배경 무력화 */
        border: none;
    }
    .btn_bo_user .btn,
    .btn_bo_user .btn_b01,
    .btn_bo_user .btn_admin {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        line-height: 1;
        padding: 0;
        background: #fff;
        border: 1px solid #e8eef0;
        border-radius: 10px;
        color: #5A5A6E;
        text-align: center;
        font-size: 0.9em;
        text-decoration: none;
        transition: background 0.15s ease, border-color 0.15s ease;
    }
    .btn_bo_user .btn:hover,
    .btn_bo_user .btn_b01:hover,
    .btn_bo_user .btn_admin:hover {
        background: #F5F5F7;
        border-color: #E0E0E8;
        color: #4A4A5A;
    }
    /* 글쓰기 아이콘은 메인 컬러로 살짝 강조 */
    .btn_bo_user .fa-pencil,
    .btn_bo_user .fa-pencil-square-o {color: #4A4A5A;}

    /* 검은 가로선/굵은 보더 제거 (그누보드 기본 CSS, hr 등 가능성 모두 잡기) */
    #bo_list hr,
    #bo_list .tbl_head01::before,
    #bo_list .tbl_head01::after,
    #bo_list .tbl_wrap::before,
    #bo_list .tbl_wrap::after {display: none !important;}

    /* 테이블 컨테이너 - 가로 스크롤 비활성화, 흰 배경/보더 제거 */
    #bo_list .tbl_head01,
    #bo_list .tbl_wrap {
        overflow: visible;
        margin: 0;
        background: transparent !important;
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }
    #bo_list .tbl_head01 table {
        border: none !important;
        border-collapse: separate;
    }
    #bo_list .tbl_head01 tbody {border: none !important;}

    /* table → tbody만 흐름 유지 */
    #bo_list .tbl_head01 table,
    #bo_list .tbl_wrap table,
    #bo_list .tbl_head01 tbody {
        display: block;
        width: 100%;
        background: transparent !important;
        border: none !important;
    }
    /* 헤더 행 숨김 */
    #bo_list .tbl_head01 thead,
    #bo_list .tbl_head01 colgroup {display: none;}

    /* 각 행 = 카드 */
    #bo_list .tbl_head01 tbody tr {
        display: block;
        position: relative;
        padding: 14px 14px;
        margin: 0 0 8px;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(74, 74, 90, 0.04);
        text-align: left;
    }
    #bo_list .tbl_head01 tbody tr:hover {background: #fafdfb; border-left: 1px solid #f0f0f0;}
    #bo_list .tbl_head01 tbody tr.even td {background: transparent;}

    /* 공지사항 행 - 분홍 배경 */
    #bo_list .tbl_head01 tbody tr.bo_notice {
        background: #fdf0f4;
        border-color: #f8dde6;
    }
    #bo_list .tbl_head01 tbody tr.bo_notice td,
    #bo_list .tbl_head01 tbody tr.bo_notice td.td_num2,
    #bo_list .tbl_head01 tbody tr.bo_notice td.td_subject,
    #bo_list .tbl_head01 tbody tr.bo_notice td.td_name,
    #bo_list .tbl_head01 tbody tr.bo_notice td.td_num,
    #bo_list .tbl_head01 tbody tr.bo_notice td.td_datetime {
        background: transparent !important;
        border: none !important;
    }

    /* 모든 td 초기화 */
    #bo_list .tbl_head01 tbody td {
        display: inline;
        padding: 0;
        margin: 0;
        height: auto !important;
        border: none;
        background: transparent;
        text-align: left;
        line-height: 1.5;
        vertical-align: baseline;
        white-space: normal;
        word-break: break-word;
    }

    /* 모바일에서 숨길 셀들 */
    #bo_list .tbl_head01 tbody td.td_chk,
    #bo_list .tbl_head01 tbody td.td_mb_id,
    #bo_list .tbl_head01 tbody td.td_mng,
    #bo_list .tbl_head01 tbody td.td_nick,
    #bo_list .tbl_head01 tbody td.td_group,
    #bo_list .tbl_head01 tbody td.td_board {display: none !important;}

    /* 추천(두 번째 td_num)·비추천(세 번째 td_num) 숨김
       첫 번째 td_num(조회수)만 보이게 */
    #bo_list .tbl_head01 tbody td.td_num ~ td.td_num {display: none !important;}

    /* td_num2(번호) - 일반 행은 숨기고, 공지 행에서만 .notice_icon 살림 */
    #bo_list .tbl_head01 tbody td.td_num2 {display: none !important;}
    #bo_list .tbl_head01 tbody tr.bo_notice td.td_num2 {
        display: block !important;
        margin: 0 0 8px;
    }
    #bo_list .tbl_head01 tbody tr.bo_notice .notice_icon {
        display: inline-block;
        padding: 2px 8px;
        background: #ffe1eb;
        color: #f9267f;
        font-size: 0.7em;
        font-weight: 700;
        border-radius: 4px;
        line-height: 1.4;
    }

    /* ----- 제목 (td_subject) - 카드의 메인 ----- */
    #bo_list .tbl_head01 tbody td.td_subject {
        display: block !important;
        margin: 0 0 8px;
        padding: 0;
        font-size: 0.95em;
        line-height: 1.45;
    }
    #bo_list .tbl_head01 tbody td.td_subject .bo_tit {
        display: block;
        font-weight: 600;
        color: #1A1A2E;
    }
    #bo_list .tbl_head01 tbody td.td_subject .bo_tit a {
        color: #1A1A2E;
        font-weight: 600;
        text-decoration: none;
        word-break: break-word;
    }
    #bo_list .tbl_head01 tbody td.td_subject .bo_cate_link {
        display: inline-block;
        margin: 0 6px 4px 0;
        padding: 2px 8px;
        font-size: 0.74em;
        background: #EEEEF5;
        color: #4A4A5A;
        border: none;
        border-radius: 10px;
        line-height: 1.4;
    }
    /* 댓글 수 뱃지 */
    #bo_list .tbl_head01 tbody td.td_subject .cnt_cmt {
        display: inline-block;
        margin-left: 4px;
        padding: 1px 6px;
        background: #e3effd;
        color: #2277CC;
        font-size: 0.78em;
        font-weight: 600;
        border-radius: 8px;
        line-height: 1.5;
    }
    /* 새글 N 아이콘 */
    #bo_list .tbl_head01 tbody td.td_subject .new_icon {
        display: inline-block;
        margin-left: 4px;
        padding: 1px 5px;
        background: #E0E0EE;
        color: #5A5A7A;
        font-size: 0.7em;
        font-weight: 700;
        border-radius: 3px;
        vertical-align: middle;
        line-height: 1.4;
    }

    /* ----- 메타 정보 한 줄 (작성자 · 조회 · 날짜) ----- */
    #bo_list .tbl_head01 tbody td.td_name {
        display: inline-block;
        margin: 0 10px 0 0;
        font-size: 0.85em;
        color: #4A4A5A;
        font-weight: 500;
    }
    /* 날짜 - 오른쪽 끝 */
    #bo_list .tbl_head01 tbody td.td_datetime,
    #bo_list .tbl_head01 tbody td.td_date {
        display: inline-block;
        position: absolute;
        right: 0;
        font-size: 0.85em;
        color: #999;
    }
    #bo_list .tbl_head01 tbody td.td_datetime::before,
    #bo_list .tbl_head01 tbody td.td_date::before {
        content: "📅 ";
        opacity: 0.7;
    }
    /* 조회수 - 날짜 왼쪽 */
    #bo_list .tbl_head01 tbody td.td_num {
        display: inline-block;
        position: absolute;
        right: 70px;
        font-size: 0.85em;
        color: #999;
    }
    #bo_list .tbl_head01 tbody td.td_num::before {
        content: "👁 ";
        opacity: 0.7;
    }

    /* 빈 게시물 */
    #bo_list .tbl_head01 tbody td.empty_table {
        display: block !important;
        padding: 50px 0 !important;
        text-align: center !important;
        color: #aaa;
        font-size: 0.9em;
        background: #fff;
        border-radius: 10px;
    }

    /* 페이지네이션 */
    #bo_list .pg_wrap {margin: 16px 0; text-align: center;}
    #bo_list .pg {font-size: 0.85em;}
    #bo_list .pg_page,
    #bo_list .pg_current {
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        padding: 0 6px;
        margin: 0 2px;
        border-radius: 6px;
    }

    /* 게시판 검색 영역 */
    .bo_sch_wrap .bo_sch {width: 90% !important; max-width: 360px;}

    /* ============================================================
       새글(전체게시물) 페이지 - 모바일 카드형
       전략: 검색 폼 콤팩트하게 / 결과는 카드형 (그룹·게시판 뱃지 + 제목 + 작성자/시간)
       ============================================================ */

    /* ----- 검색 영역 ----- */
    #new_sch {
        margin: 0 0 16px;
        padding: 14px;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(74, 74, 90, 0.04);
    }
    #new_sch form {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0;
        align-items: stretch;
        margin: 0;
    }
    #new_sch select {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0;
        width: auto !important; /* 원본 스킨 width:160px 무력화 */
        height: 38px;
        padding: 0 10px;
        border: 1px solid #d8e0e0;
        border-radius: 8px;
        background: #fff;
        font-size: 0.88em;
        color: #333;
        appearance: auto;
        box-sizing: border-box;
        margin-bottom: 8px;
    }
    /* 첫 번째 셀렉트 우측 마진으로 두 셀렉트 사이 간격 */
    #new_sch select:first-of-type {margin-right: 8px;}

    /* 입력창 - 두 번째 줄, 버튼 자리만큼 폭 줄임 */
    #new_sch .frm_input {
        flex: 1 1 0 !important;            /* 0으로 시작, 사용 가능 공간 차지 */
        width: auto !important;             /* 원본 280px 무력화 */
        min-width: 0 !important;             /* 줄어들 수 있게 */
        max-width: calc(100% - 56px) !important; /* 버튼(50px) + gap(8px) 제외 폭 */
        height: 40px !important;
        padding: 0 14px !important;
        border: 1px solid #d8e0e0 !important;
        border-right: none !important;       /* input과 버튼 사이 보더 통합 */
        border-radius: 20px 0 0 20px !important;
        background: #fff !important;
        font-size: 0.88em !important;
        box-sizing: border-box !important;
    }
    #new_sch .frm_input:focus {
        border-color: #4A4A5A !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* 검색 버튼 - input 바로 옆, 우측이 둥근 형태 → input과 통합된 박스 모양 */
    #new_sch .btn_submit {
        flex: 0 0 50px !important;
        width: 50px !important;
        height: 40px !important;
        margin: 0 0 0 -1px !important;
        padding: 0 !important;
        background: #4A4A5A !important;
        background-image: none !important;
        color: #fff !important;
        border: none !important;
        border-radius: 0 20px 20px 0 !important;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        line-height: 1;
        font-size: 0 !important;
        vertical-align: top;
    }
    #new_sch .btn_submit:hover {
        background: #1B4D38 !important;
        opacity: 1 !important;
        transform: none !important;
    }
    #new_sch .btn_submit i {
        font-size: 1rem !important;
        margin: 0 !important;
        color: #fff !important;
    }

    /* 안내 텍스트 (회원 아이디만 검색 가능) */
    #new_sch p {
        flex: 1 1 100% !important;
        margin: 4px 0 0 !important;
        font-size: 0.75em !important;
        color: #999 !important;
        text-align: center !important;
    }

    /* ----- 결과 목록 - 카드형 ----- */
    /* 검은 가로선/큰 테두리 제거 */
    #fnewlist {margin: 0;}
    #fnewlist .tbl_head01,
    #fnewlist .tbl_wrap {
        overflow: visible;
        margin: 0;
        background: transparent !important;
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }
    #fnewlist .tbl_head01 hr,
    #fnewlist hr {display: none !important;}

    /* table → tbody만 흐름 유지 */
    #fnewlist .tbl_head01 table,
    #fnewlist .tbl_head01 tbody {
        display: block;
        width: 100%;
        border: none !important;
    }
    /* 헤더 행 숨김 */
    #fnewlist .tbl_head01 thead,
    #fnewlist .tbl_head01 colgroup {display: none;}

    /* 각 행 = 카드 */
    #fnewlist .tbl_head01 tbody tr {
        display: block;
        position: relative;
        padding: 12px 14px;
        margin: 0 0 8px;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(74, 74, 90, 0.04);
        text-align: left;
    }
    #fnewlist .tbl_head01 tbody tr:hover {background: #fafdfb;}

    /* 모든 td 초기화 */
    #fnewlist .tbl_head01 tbody td {
        display: inline;
        padding: 0;
        margin: 0;
        height: auto !important;
        border: none;
        background: transparent;
        text-align: left;
        line-height: 1.5;
        vertical-align: baseline;
        white-space: normal;
        word-break: break-word;
    }

    /* 체크박스(관리자) 숨김 */
    #fnewlist .tbl_head01 tbody td.td_chk {display: none !important;}

    /* 그룹 뱃지는 모바일에서 숨김 (게시판명만 표시) */
    #fnewlist .tbl_head01 tbody td.td_group {display: none !important;}

    /* 게시판 - 뱃지 형태로 첫 줄, 풀 텍스트로 표시
       (게시판 스킨 원본의 width:90px 강제 풀어 콘텐츠 크기에 맞게 fit) */
    #fnewlist .tbl_head01 tbody td.td_board {
        display: inline-block;
        width: auto !important;
        max-width: 100%;
        margin: 0 0 8px 0;
        padding: 3px 10px;
        font-size: 0.74em;
        font-weight: 500;
        background: #EEEEF5;
        color: #4A4A5A;
        border-radius: 12px;
        line-height: 1.5;
        text-align: left !important;
        white-space: normal;
        word-break: break-word;
    }
    /* 새글 스킨 style.css가 a에 white-space:nowrap + ellipsis 강제하는 걸 모바일에선 해제 */
    #fnewlist .tbl_head01 tbody td.td_board a {
        display: inline;
        background: transparent;
        color: inherit;
        padding: 0;
        border-radius: 0;
        font-size: inherit;
        font-weight: inherit;
        text-decoration: none;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word;
    }

    /* 제목 (.new_tit가 들어있는 td) - td_board 다음 td */
    #fnewlist .tbl_head01 tbody td.td_board + td {
        display: block !important;
        margin: 0 0 8px;
        font-size: 0.95em;
        line-height: 1.45;
        font-weight: 600;
        color: #1A1A2E;
    }
    #fnewlist .tbl_head01 tbody td.td_board + td a,
    #fnewlist .tbl_head01 tbody .new_tit {
        color: #1A1A2E;
        font-weight: 600;
        text-decoration: none;
    }

    /* 작성자 + 시간 - 메타정보 한 줄 */
    #fnewlist .tbl_head01 tbody td.td_name {
        display: inline-block;
        margin: 0 10px 0 0;
        font-size: 0.78em;
        color: #4A4A5A;
        font-weight: 500;
    }
    #fnewlist .tbl_head01 tbody td.td_name img {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        vertical-align: middle;
        margin-right: 4px;
    }
    #fnewlist .tbl_head01 tbody td.td_date,
    #fnewlist .tbl_head01 tbody td.td_datetime {
        display: inline-block;
        margin: 0;
        font-size: 0.78em;
        color: #999;
    }
    #fnewlist .tbl_head01 tbody td.td_date::before,
    #fnewlist .tbl_head01 tbody td.td_datetime::before {
        content: "🕐 ";
        margin-right: 1px;
        opacity: 0.7;
    }

    /* 빈 게시물 */
    #fnewlist .tbl_head01 tbody td.empty_table {
        display: block !important;
        padding: 50px 0 !important;
        text-align: center !important;
        color: #aaa;
        font-size: 0.9em;
        background: #fff;
        border-radius: 10px;
    }

    /* 페이지네이션 */
    #fnewlist + .pg_wrap,
    #fnewlist .pg_wrap {
        margin: 16px 0;
        text-align: center;
    }

    /* ============================================================
       게시물 보기 (view) - 모바일 깔끔한 디자인
       전략: 제목 단독 한 줄 / 우측 상단 도구 버튼 / 메타정보 한 줄
       ============================================================ */
    #bo_v {
        width: auto !important;
        position: relative;
        padding-top: 0;
    }
    /* 상단 도구 버튼 - 제목 위에 한 줄로, 좌측 정렬 (목록으로 돌아가기 느낌) */
    #bo_v_top {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0 0 10px 0;
        padding: 0;
        border: none;
        background: transparent;
    }
    /* 제목 - 버튼 아래, 크기 줄임 */
    #bo_v_title {
        margin: 0 0 14px 0;
        padding: 0;
        color: #1A1A2E;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.35;
    }
    #bo_v_title .bo_v_tit {
        display: block;
        font-size: 1.15rem;
        font-weight: 700;
        word-break: break-word;
    }
    #bo_v_title .bo_v_cate {
        display: inline-block;
        margin-right: 6px;
        padding: 2px 8px;
        font-size: 0.74em;
        background: #EEEEF5;
        color: #4A4A5A;
        border-radius: 10px;
        font-weight: 500;
        vertical-align: middle;
    }
    .btn_bo_user.bo_v_com {
        margin: 0;
        padding: 0;
        float: none;
        display: inline-flex;
        gap: 6px;
        background: transparent;
    }
    .btn_bo_user.bo_v_com li {
        float: none;
        width: auto;
        height: auto;
        line-height: normal;
        margin: 0;
        background: transparent !important;
        border: none;
    }
    .btn_bo_user.bo_v_com .btn,
    .btn_bo_user.bo_v_com .btn_b01,
    .btn_bo_user.bo_v_com .btn_admin {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        line-height: 1;
        padding: 0;
        background: #fff;
        border: 1.5px solid #E0E0E8;
        border-radius: 9px;
        font-size: 1.05em;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.15s;
    }
    .btn_bo_user.bo_v_com .btn:hover,
    .btn_bo_user.bo_v_com .btn_b01:hover,
    .btn_bo_user.bo_v_com .btn_admin:hover {
        background: #F5F5F7;
        border-color: #6A6A82;
    }

    /* 작성자/조회/날짜 정보 - 한 줄 메타정보로 (프로필 사진 숨김) */
    #bo_v_info {
        padding: 0 0 14px;
        margin: 0 0 16px;
        border-top: none;
        border-bottom: 1px solid #ececec;
        line-height: 1.6;
    }
    #bo_v_info .profile_info {
        display: block;
        font-size: 0.8em;
        color: #888;
    }
    /* 모바일에선 프로필 사진 숨김 - 메타정보만 텍스트로 */
    #bo_v_info .pf_img {display: none;}
    #bo_v_info .profile_info_ct {
        display: block;
        flex: none;
        min-width: 0;
        font-size: inherit;
        line-height: 1.6;
    }
    #bo_v_info .profile_info_ct br {display: none;}
    #bo_v_info .profile_info_ct strong {
        display: inline-block;
        margin-right: 12px;
        font-weight: 500;
        color: #555;
    }
    /* 작성자(첫 strong)는 살짝 강조 */
    #bo_v_info .profile_info_ct strong:first-child {
        color: #4A4A5A;
        font-weight: 600;
    }
    /* 닉네임 링크 색감 */
    #bo_v_info .profile_info_ct a {color: inherit; text-decoration: none;}
    /* 아이콘들 (i.fa-...) 톤 통일 */
    #bo_v_info .fa {
        margin-right: 3px;
        color: #aaa;
        font-size: 0.95em;
    }

    /* 게시물 본문 영역 */
    #bo_v_atc {min-height: auto;}
    #bo_v_con {
        margin: 0 0 24px;
        min-height: auto;
        font-size: 0.95em;
        line-height: 1.75;
        word-break: break-word;
        overflow-wrap: break-word;
        color: #333;
    }
    #bo_v_con img {max-width: 100%; height: auto;}

    /* 추천/비추천 - 본문 아래 가운데 정렬 */
    #bo_v_act {
        margin: 24px 0;
        text-align: center;
    }
    #bo_v_act .bo_v_act_gng {display: inline-block; margin: 0 4px;}
    #bo_v_act .bo_v_good,
    #bo_v_act .bo_v_nogood {
        width: auto;
        min-width: 64px;
        line-height: 36px;
        padding: 0 16px;
        border-radius: 20px;
        font-size: 0.85em;
    }

    /* 이전글/다음글 */
    .bo_v_nb {margin: 16px 0;}
    .bo_v_nb li {padding: 10px 8px; font-size: 0.88em;}
    .bo_v_nb li .nb_tit {padding-right: 6px; font-size: 0.85em;}
    .bo_v_nb li .nb_date {font-size: 0.78em;}

    /* 첨부 파일 / 링크 */
    #bo_v_file li,
    #bo_v_link li {padding: 10px; margin: 8px 0;}
    #bo_v_file li i,
    #bo_v_link li i {font-size: 1.6em; margin-right: 12px;}

    /* SNS / 공유 영역은 모바일에서 너무 커서 숨김 권장 (필요시 사용자 결정) */
    #bo_v_sns {float: none;}
    #bo_v_sns li {float: none; width: 100%; margin: 4px 0;}

    /* ----- 댓글 (view_comment) ----- */
    .cmt_btn {margin: 24px 0 0; padding: 0 0 12px; font-size: 0.95em;}
    .cmt_btn b {font-size: 1.1em;}

    #bo_vc {background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 16px;
            box-shadow: 0 2px 12px rgba(74, 74, 90, 0.06);}
    #bo_vc article {margin: 14px 0; padding-bottom: 14px;}
    #bo_vc article .pf_img {margin-right: 8px;}
    #bo_vc article .pf_img img {width: 36px; height: 36px;}
    #bo_vc article .cm_wrap {max-width: none; width: calc(100% - 50px);}
    #bo_vc .cmt_contents {padding: 4px 0 12px; font-size: 0.92em; line-height: 1.7;}
    #bo_vc_empty {padding: 36px 0 !important; font-size: 0.88em;}

    /* 댓글 작성 폼 */
    .bo_vc_w {margin: 14px 0;}
    .bo_vc_w textarea {height: 90px; font-size: 0.92em;}
    .bo_vc_w_info {float: none; margin: 8px 0;}
    .bo_vc_w_info .frm_input {float: none; width: 100%; margin: 0 0 6px;}
    .bo_vc_w .btn_confirm {margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;}
    .bo_vc_w .btn_submit {height: 40px; padding: 0 16px; font-size: 0.95em;}
    .secret_cm {float: none;}

    /* 자동등록방지(captcha) - 모바일 가독성 */
    #captcha {display: block; margin: 10px 0;}
    #captcha #captcha_key {width: 110px;}

    /* ----- 글쓰기 (write) ----- */
    #bo_w .write_div {margin: 8px 0;}
    #bo_w .bo_w_info .frm_input {float: none; width: 100%; margin: 4px 0;}
    #bo_w #wr_password,
    #bo_w #wr_homepage {margin-left: 0;}
    #bo_w .bo_w_tit .frm_input {padding-right: 14px;}
    #bo_w .bo_w_tit #btn_autosave {position: static; margin-top: 4px;}
    #bo_w .btn_confirm {display: flex; flex-wrap: wrap; gap: 6px;}
    #bo_w .btn_submit {flex: 1; min-width: 100px;}

    /* ----- "더보기" 옵션 메뉴 위치 보정 ----- */
    .more_opt {right: 0; top: 38px;}

    /* ============================================================
       회원가입 (register) - 모바일 가독성
       - 동의 안내 문구 폰트 줄임 + 줄바꿈 자연스럽게
       - 개인정보 수집 테이블 폰트/패딩 줄임 + 컬럼 폭 재조정
       ============================================================ */

    /* 동의 안내 문구 - 폰트 줄이고 줄간격 조정 */
    .register #fregister > p,
    #fregister > p {
        font-size: 0.78rem !important;
        line-height: 1.55 !important;
        padding: 12px 14px !important;
        word-break: keep-all;
    }
    #fregister > p i {font-size: 0.85rem !important;}

    /* 약관 textarea - 모바일에서 높이 줄임 */
    #fregister textarea {
        height: 110px !important;
        font-size: 0.78rem !important;
        padding: 10px !important;
    }

    /* 섹션 제목 (h2) - 모바일에서 크기 줄임 */
    #fregister h2 {
        font-size: 0.92rem !important;
        padding-right: 50px !important; /* 우측 동의 체크박스 자리 확보 */
    }

    /* (필수) 개인정보 수집 및 이용 테이블 - 모바일 가독성 */
    .fregister_terms table {
        font-size: 0.72rem !important;
        table-layout: auto !important;
    }
    .fregister_terms table th {
        padding: 8px 6px !important;
        font-size: 0.74rem !important;
        width: auto !important;
        white-space: nowrap;
    }
    /* 컬럼 폭 재조정: 목적·항목은 넓게, 보유기간은 좁게 */
    .fregister_terms table th:nth-child(1) {width: 30% !important;}
    .fregister_terms table th:nth-child(2) {width: 38% !important;}
    .fregister_terms table th:nth-child(3) {width: 32% !important;}
    .fregister_terms table td {
        padding: 8px 6px !important;
        font-size: 0.72rem !important;
        line-height: 1.5;
        word-break: keep-all;
        vertical-align: middle;
    }

    /* 모두 동의 체크박스 영역 */
    #fregister_chkall {
        font-size: 0.85rem;
    }
    #fregister_chkall label {font-size: 0.85rem !important;}

    /* 하단 버튼 영역 - 원본 float/width 49.5% 무력화하고 flex로 깔끔하게 */
    .register .btn_confirm {
        display: flex !important;
        gap: 8px !important;
        margin-top: 16px;
        text-align: left;
    }
    .register .btn_confirm .btn_close,
    .register .btn_confirm .btn_submit {
        float: none !important;
        margin: 0 !important;
        width: auto !important;
        height: 44px !important;
        font-size: 0.92rem !important;
    }
    .register .btn_confirm .btn_close {
        flex: 0 0 90px !important;
    }
    .register .btn_confirm .btn_submit {
        flex: 1 1 auto !important;
    }
}

/* ============================================================
   ▼ 게시물 보기 - 480px 이하 소형 화면 보정
   ============================================================ */
@media (max-width: 480px) {
    #bo_v_title .bo_v_tit {
        font-size: 1.05rem;
    }
    .btn_bo_user.bo_v_com li {
        width: auto;
        height: auto;
    }
    .btn_bo_user.bo_v_com .btn,
    .btn_bo_user.bo_v_com .btn_b01,
    .btn_bo_user.bo_v_com .btn_admin {
        width: 34px;
        height: 34px;
        font-size: 0.95em;
    }
}

/* ── fa-spin 비활성화 ── */
.fa-spin { animation: none !important; }

/* ── fa-spin 중심점 고정 (모바일 버그 방지) ── */
.fa-spin {
  display: inline-block !important;
  transform-origin: 50% 50% !important;
  vertical-align: middle;
}

/* ── 소셜 로그인 버튼 ── */
.rf-sns-wrap { margin: 10px 0 4px; }

.rf-sns-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 10px;
  font-size: 0.72rem; color: #B0C4BB;
}
.rf-sns-divider::before,
.rf-sns-divider::after {
  content: ''; flex: 1; height: 1px; background: #E2EDE6;
}

.rf-sns-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.rf-sns-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: filter 0.15s, transform 0.1s;
  border: none; cursor: pointer;
}
.rf-sns-btn:hover { filter: brightness(0.93); transform: translateY(-1px); }
.rf-sns-btn svg { flex-shrink: 0; }

.rf-sns-naver   { background: #03C75A; color: #fff; }
.rf-sns-kakao   { background: #FEE500; color: #191919; }
.rf-sns-google  { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.rf-sns-facebook{ background: #1877F2; color: #fff; }
.rf-sns-twitter { background: #000; color: #fff; }
.rf-sns-payco   { background: #F93; color: #fff; }

@media (max-width: 480px) {
  .rf-sns-btn { font-size: 0.76rem; height: 38px; }
}