@charset "utf-8";

* { margin: 0; padding: 0; box-sizing: border-box; }
ul, ol { list-style: none!important; }
a { text-decoration: none!important; color: #000; }

/* ============================================================
   [01] 전역 스타일 초기화 및 보정
   - BS5 Reboot이 처리하지 않는 한국어 전용 가독성 설정
   ============================================================ */
body {
    /* 한글 단어 단위 줄바꿈: 문장이 중간에 툭 끊기는 현상 방지 */
    word-break: keep-all; 
    overflow-wrap: break-word;
    /* 폰트 렌더링 최적화 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 가로 스크롤 방지 */
    overflow-x: hidden;
    color: var(--t-color); /* setting.css 변수 상속 */
}


/* 텍스트 드래그 시 브랜드 컬러 적용 */
::selection {
    background-color: var(--main-color);
    color: #fff;
}

/* 현대적인 슬림 스크롤바 커스텀 */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }


/* ============================================================
   [02] 그누보드 필수 보안 및 관리자용 (기존 코드 유지)
   ============================================================ */
.sound_only {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    border: 0;
    overflow: hidden !important;
}

#hd_admin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    background: #222;
    color: #fff;
    text-align: center;
    font-size: 12px;
    z-index: 1100; /* setting.css 헤더보다 높게 설정 */
    opacity: 0.8;
}
#hd_admin:hover { opacity: 1; }
#hd_admin a { color: #fff; text-decoration: none; }


/* ============================================================
   [03] 게시판 콘텐츠 및 미디어 반응형 (기존 코드 개선)
   ============================================================ */
.view_content {
    width: 100%;
    overflow: hidden;
    line-height: 1.8;
}

/* 에디터에 삽입된 이미지/영상/지도가 레이아웃을 깨는 것 방지 */
.view_content img,
.view_content video,
.view_content iframe {
    max-width: 100% !important;
    height: auto !important;
}


/* ============================================================
   [04] 캡차(자동등록방지) 및 폼 요소 보정 (기존 코드 유지)
   ============================================================ */
#captcha {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
#captcha_img {
    cursor: pointer;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
}
/* 소리듣기 아이콘 등 기존 속성 유지 */
#captcha_mp3 {
    display: inline-block;
    width: 30px; height: 30px;
    background: url("../../img/captcha_mp3.png") no-repeat center;
    text-indent: -9999px;
}

/* 필수 입력창 강조 */
/* .required, :required {
    border-bottom: 2px solid var(--main-color) !important;
} */


/* ============================================================
   [05] 팝업 및 기타 유틸리티 (기존 코드 유지)
   ============================================================ */
.win_btn {
    padding: 20px 0;
    text-align: center;
}
.win_btn button, .win_btn a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid var(--gray-300);
}

/* 페이지네이션 기본 정렬 */
.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
}