@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");






/* Freesentation 폰트 - 하나의 font-family로 통합 */
@font-face {
    font-family: 'Freesentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

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

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

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

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

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


/* 수성바탕체 */
@font-face {
    font-family: 'SuseongBatang';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2205@1.0/SuseongBatang.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}



/* 루트 색상 설정 */

:root {
    --color-primary: #082340;      
    --color-secondary: #0b4aab;
}


.sound_only {
    display: none;
}


body {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    background-color: #ffffff !important;
    color: #000619;
}

/* break-keep, letter-spacing 스타일 */

p,
div,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    word-break: keep-all;
    overflow-wrap: break-word;
    letter-spacing: -0.02rem;
}


/* span 태그는 상위 태그의 letter-spacing 값을 상속받음 */
span {
    letter-spacing: inherit;
}


/*모바일, 태블릿 뷰에서 lenis 새로고침 중지*/
html,
body {
    overscroll-behavior-y: none;
}

@media (min-width:1024px) {

    html,
    body {
        overscroll-behavior-y: initial;
    }
}


/* 에디터 콘텐츠 내 텍스트, 이미지 정렬 - 에디터에서 설정한 정렬 그대로 반영 */

.editor_content p,
.editor_content div,
#bo_v_con p,
#bo_v_con div {
    text-align: inherit;
    font-family: inherit !important;
}

.editor_content img,
#bo_v_con img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 글쓰기 페이지 링크·파일 첨부 글자 크기 수정 및 파일 첨부 마진 조정 */
#bo_w .bo_w_link,
#bo_w .bo_w_file,
#bo_w .bo_w_link label,
#bo_w .bo_w_file .lb_icon,
#bo_w .bo_w_link .frm_input,
#bo_w .bo_w_file .frm_input,
#bo_w .bo_w_file .frm_file,
#bo_w .bo_w_file .file_del,
#bo_w .bo_w_file .file_del label {
    font-size: 14px !important;
}

#bo_w .bo_w_file .frm_file {
    margin-top: 0 !important;
}


/* 게시판 본문 첨부 이미지 확대 링크는 이미지 크기만 클릭되도록 제한 */
#bo_v_img a.view_image {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
}

#bo_v_img a.view_image img {
    display: block;
}

/* 게시글 파일첨부, 링크 공통 스타일 */
#bo_v_file h2,
#bo_v_link h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_file ul,
#bo_v_link ul {
    margin: 0;
    list-style: none;
}

#bo_v_file li,
#bo_v_link li {
    padding: 15px;
    position: relative;
    margin: 10px 0;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    box-shadow: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

#bo_v_file li i,
#bo_v_link li i {
    flex-shrink: 0;
    color: #000;
    font-size: 2.35em;
    transition: color 0.2s ease;
}

#bo_v_file a,
#bo_v_link a {
    flex: 1;
    min-width: 0;
    display: block;
    text-decoration: none;
    word-wrap: break-word;
    color: #000;
    transition: color 0.2s ease;
}

#bo_v_file a:focus,
#bo_v_file li:hover a,
#bo_v_file a:active,
#bo_v_link a:focus,
#bo_v_link li:hover a,
#bo_v_link a:active {
    text-decoration: underline;
    color: var(--color-secondary);
}

#bo_v_file img {
    flex-shrink: 0;
    margin: 0 10px 0 0;
}

#bo_v_file .bo_v_file_cnt,
#bo_v_link .bo_v_link_cnt {
    color: #000;
    font-size: 0.92em;
    transition: color 0.2s ease;
}

#bo_v_file li:hover,
#bo_v_link li:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

#bo_v_file li:hover i,
#bo_v_link li:hover i {
    color: var(--color-secondary);
}

#bo_v_file li:hover .bo_v_file_cnt,
#bo_v_link li:hover .bo_v_link_cnt {
    color: var(--color-secondary);
}



/* 체크박스 체크 시 색상 변경 */

input[type="checkbox"] {
    accent-color: var(--color-primary) !important;
}

input[type="checkbox"]:checked {
    accent-color: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

input[type="checkbox"]:checked+label span {
    accent-color: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

input[type="checkbox"]+label:hover {
    color: var(--color-primary) !important;
}


/* input, select, textarea focus 시 파란색 outline 제거 및 색상 변경 */
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}

input[type="text"]:focus-visible,
input[type="password"]:focus-visible {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}

select:focus,
select:focus-visible {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}

textarea:focus,
textarea:focus-visible {
    outline: none !important;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}


/*캡챠 오버라이딩*/
#captcha {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    position: relative;    
}

#captcha .captcha_box {
    color: #000;
}

@media screen and (max-width: 768px) {
    #captcha {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* captcha_img는 한 줄 전체를 차지 */
    #captcha_img {
        display: block;
        width: 80% !important;
        margin: 0 auto;
        object-fit: contain;

    }

    /* captcha_key와 captcha_reload를 한 줄로 배치 */
    #captcha_key {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        height: 40px !important;
    }

    #captcha_reload {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }
}

/* ========== Site Header (default.css override + JS state) ========== */
#hd #hd_wrapper.site-hd {
    height: auto;
    margin: 0;
}

/* 모바일 로고: max-width:100% 순환 축소로 가로 찌그러짐 방지 (원본 비율 유지) */
#hd .site-hd__mobile-logo img {
    width: auto;
    max-width: none;
    height: 24px;
    object-fit: contain;
}

/* 회원 로고: 높이 대신 너비 기준 (2줄 텍스트 가독성) */
#hd .site-hd__mobile-logo img.site-hd__logo--member {
    width: 220px;
    max-width: calc(100vw - 7.5rem);
    height: auto;
}

#hd .site-hd #logo.site-hd__logo {
    float: none;
    padding: 0;
}

#hd .site-hd #site-nav.site-hd__gnb {
    background: transparent;
}

#hd .site-hd #site-nav-list.site-hd__menu {
    float: none;
    border-bottom: 0;
}

#hd .site-hd #site-nav-list.site-hd__menu:after,
#hd .site-hd .site-hd__all-list:after,
#hd .site-hd .site-hd__dropdown-inner:after {
    display: none;
}

#hd .site-hd .site-hd__item {
    position: relative;
    float: none;
}

#hd .site-hd .site-hd__all-item {
    float: none;
    width: auto;
    min-height: 0;
    border: 0;
}

#hd .site-hd .site-hd__item.site-hd__item--has-sub .site-hd__link {
    padding-right: 0;
}

#hd .site-hd .site-hd__item:hover > .site-hd__link,
#hd .site-hd .site-hd__item.site-hd__item--open > .site-hd__link {
    color: var(--color-primary);
    font-weight: 600;
}

#hd .site-hd .site-hd__dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 6px;
}

#hd .site-hd .site-hd__sublink:hover,
#hd .site-hd .site-hd__sublink:focus {
    color: var(--color-primary);
    background: transparent;
}

#hd .site-hd .site-hd__item:hover > .site-hd__dropdown,
#hd .site-hd .site-hd__item.site-hd__item--open > .site-hd__dropdown,
#hd .site-hd .site-hd__item:focus-within > .site-hd__dropdown {
    display: block;
}

body.is-gnb-open {
    overflow: hidden;
}

/* 모바일 메뉴 드로어: Lenis 간섭 없이 내부 스크롤 */
#hd #site-nav-drawer.site-hd__all {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@media (min-width: 1024px) {
    #hd .site-hd__all,
    #hd #site-nav-drawer.site-hd__all,
    #hd .site-hd__all-bg,
    #hd #site-nav-overlay.site-hd__all-bg {
        display: none !important;
        pointer-events: none !important;
    }
}

/* 공통 서브비주얼 */
.subvisual {
    background-image: url('../img/subvisual_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.subvisual__overlay {
    background: linear-gradient(90deg, rgba(11, 74, 171, 0.5) 0%, rgba(11, 74, 171, 0) 100%);
}
