@charset "utf-8";

/* 에디터 너비를 페이지와 맞추기 위해 좌우 20px 늘림 */
#cke_document-editor { margin:0 -20px }
#view-title { background:#eeeeee; border:1px solid #cccccc; padding:10px 20px }

/*
================================================================================
    레이어 팝업 스타일
================================================================================
*/
.pop-layer .pop-container {padding: 20px 25px;font-size:15px;}
.pop-layer p.ctxt {color: #191919;line-height: 25px;}

.pop-layer .btn-r {
    width: 100%;
    margin: 10px 0 20px;
    padding-top: 10px;
    border-top: 1px solid #DDD;
    text-align: right;
}

.pop-layer {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 510px;
    height: auto;
    background-color: #fff;
    border: 5px solid #3571B5;
    z-index: 10;
}

.dim-layer {
    display: none;
    position: fixed;
    _position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

.dim-layer .dimBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .5;
    filter: alpha(opacity=50);
}

.dim-layer .pop-layer {display: block;}

a.btn-layerClose {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #304a8a;
    background-color: #3f5a9d;
    font-size: 18px;
    color: #fff;
    line-height: 18px;
}

a.btn-layerClose:hover {
    border: 1px solid #091940;
    background-color: #1f326a;
    color: #fff;
}


/*
================================================================================
    페이지 준비중 화면
================================================================================
*/
.page-preparing {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 80px 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
}
.page-preparing-icon {
    margin-bottom: 18px;
    font-size: 40px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.4);
}
.page-preparing-title {
    margin-bottom: 9px;
    font-size: 26px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: rgba(0, 0, 0, 0.4);
}
.page-preparing-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.4);
}

/*
================================================================================
    페이지 히스토리 팝업 스타일
================================================================================
*/
#page-history .pop-container ul li {
    padding-left:16px;
    font-size:17px;
    font-weight: 400;
    color:#111111; margin-bottom: 10px;
    background:no-repeat left .6em url("img/detail-page-bullet-type1.png")
}
#page-history .pop-container ul li a:hover { text-decoration: underline }
#page-history .pop-container ul li {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
#page-history .pop-container ul li .history-info {
    flex:1;
    min-width:0;
}
#page-history .history-load-btn {
    flex:0 0 auto;
    padding:6px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    background:#fff;
    color:#333;
    text-decoration:none;
    font-size:13px;
}
#page-history .history-load-btn:hover {
    background:#f5f5f5;
}

#page-history .pop-container h2 { margin-bottom:20px }

/*
================================================================================
    페이지 버튼 디자인
================================================================================
*/
.page-contents a.btn {
    text-align: left;
    margin-bottom:5px;
    font-size: 17px;
    text-decoration: none;
    display:inline-block;
    color:#191919;
    background:#f9f9f9;
}
.view-page-buttons {
    position:relative;
}
.view-page-buttons .buttons {
    position:absolute;
    right:-45px; top:10px;
    display:flex;
    flex-direction: column;
}
.view-page-buttons.fixed .buttons {
    top:50px;
}
.view-page-buttons .buttons .btn {
    width:35px; height:35px;
    overflow:hidden;
    display:block;
    color:#191919;
    background:#f9f9f9;
}
.view-page-buttons .buttons .btn:hover {
    width:150px;
    margin-right:-150px;
}
.view-page-buttons .buttons .btn:hover {background:#dfdfdf}

.write-page-buttons { padding:20px 0; display:flex; justify-content: center }
.write-page-buttons .btn {
    font-size: 18px;
    text-decoration: none;
    width:200px;
    height:3em;
    padding:.6em 0;
    display:block;
    color:#191919;
    background:#f9f9f9;
}
.write-page-buttons .btn.btn-submit {color:#fff;background:#4876ef;}
.write-page-buttons .btn.btn-submit:hover {background:#3a8afd;}

/*
================================================================================
    스크롤 상단고정 스타일
================================================================================
*/
.scroll-fixed.fixed {
    top: 0;
    position: fixed;
    z-index: 1;
}

.page-category {
    border-bottom: 1px solid #d3d5da;
    background: rgba(255,255,255,0.9);
}
.page-category ul { display: flex; width:100%; }
.page-category ul li { width:100%; min-width:fit-content }
.page-category ul li a { display: block; border-bottom:2px solid rgba(0,0,0,0); width:100%; padding:8px 15px; text-align: center; font-size:20px; font-weight: bold; color:#a0a0a0; }
.page-category ul li a.on { color:#4876f0; border-bottom:2px solid #4876f0;  }
.page-category ul li a:hover { color:#000  }

/*
================================================================================
    페이지 컨텐츠 디자인 (공통)
================================================================================
*/
.page-contents { position:relative; font-size:18px; line-height: 1.6; min-height: 500px; padding-bottom: 50px }
.page-contents p {margin:0;padding:0;word-break:break-all}
.page-contents a { text-decoration: underline; color:-webkit-link}
.page-contents img { border-color:#ddd }

.page-contents .full-width {
    position: absolute;
    z-index: 0;
    left: calc((100vw - 100%) / 2 - (100vw - 100%));
    width: calc(100vw);
}
.page-contents.cke_editable .full-width {
    position: relative;
    left: 0;
    width: 100%;
}
.page-contents .full-width .wrap {
    margin:0 auto;
}

/*
    페이지 섹션 스타일
*/
.page-contents .section { text-align:center; color:#191919; padding-bottom: 100px }
.page-contents .section h2 {color:#191919;font-size: 42px;font-weight: bold;padding-top:190px}
.page-contents .section p:nth-child(3) { font-size:14px; color:#656565 }

.page-contents .title-section {text-align:center;color:#191919}
.page-contents .title-section h2 {color:#191919;font-size: 42px;font-weight: bold}


/* 테이블 */
.page-contents table.base,
.page-contents table.base td,
.page-contents table.base th {
    border: 1px solid #d6d6d6;
    padding: 10px;
}
.page-contents table.base {
    width:100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

/*
-----------------------------------------------------------
기본 목록 스타일
-----------------------------------------------------------
*/
.page-contents ul { list-style:none; margin:0; padding:0 }
.page-contents ul li {
    padding-left:16px;
    font-size:15px;
    font-weight: 400;
    color:#111111; margin-bottom: 10px;
    background:no-repeat left .6em url("img/detail-page-bullet-type1.png")
}

/*
-----------------------------------------------------------
박스 타입
-----------------------------------------------------------
*/

/* Type1 */
.page-contents #box.box-type1 { border:1px solid #d5d5d5; padding:50px }
.page-contents #box.box-type1 h3 { font-size:19px; margin-bottom: 20px }

/*
-----------------------------------------------------------------------------
Headings
-----------------------------------------------------------------------------
*/
.page-contents h1 {font-size:40px; color:#191919; font-weight:700; margin-bottom:10px}
.page-contents h2 {font-size:23px; color:#191919; font-weight:700; margin-bottom:20px}
.page-contents h3 {font-size:20px; color:#191919; font-weight:700; margin-bottom:20px}


/*
-----------------------------------------------------------------------------
레이아웃
-----------------------------------------------------------------------------
*/
.page-contents .layout_2col { display:flex; justify-content: space-between }
.page-contents .layout_2col .col1 { width:50%; margin-right:15px }
.page-contents .layout_2col .col2 { width:50%; margin-left: 15px }

/*
-----------------------------------------------------------------------------
테이블 스타일
-----------------------------------------------------------------------------
*/
.page-contents table.type1 { border-collapse: collapse; border:none; text-align:center; margin-bottom:20px; width:100% }
.page-contents table.type1 td,
.page-contents table.type1 th { padding:15px 0; border:1px solid #e1e1e1 }
.page-contents table.type1 th { font-weight:500; background-color: #f9f9f9; border-top:1px solid #000 }
.page-contents table.type1 td:first-child,
.page-contents table.type1 th:first-child { border-left:0 }
.page-contents table.type1 td:last-child,
.page-contents table.type1 th:last-child { border-right:0 }
.page-contents table.type1.no-border td,
.page-contents table.type1.no-border th { border-left:0; border-right:0 }
.page-contents table.type1 tbody .last-line td { position:absolute; margin-top:-1px; padding:0; border:none; border-bottom: 1px solid #c0c0c0 }

/*
-----------------------------------------------------------------------------
아코디언
-----------------------------------------------------------------------------
*/
.page-contents .accordion { border-top: 1px solid #000;border-bottom:1px solid #c0c0c0;}
.page-contents .ui-accordion .ui-accordion-header {
    border:none;border-top:1px solid #c0c0c0;border-radius: 0;
    margin-top:0;padding:20px 40px;
    background-color: #fff;
    line-height: 40px;
    font-size:20px;
    outline: none;
    color: #191919
}
.page-contents .ui-accordion .ui-accordion-header.ui-state-active {
    color: #4876ef
}
.page-contents .ui-accordion .ui-accordion-header span { display:none }
.page-contents .ui-accordion .ui-accordion-header:after {
    content: "\f067";
    font-family: FontAwesome, serif;
    float:right;
}
.page-contents .ui-accordion .ui-accordion-header.ui-state-active:after {
    content: "\f068";
}

.page-contents .ui-accordion .ui-accordion-content {
    padding: 55px 45px;
    border: none;
    font-size:15pt;
    background: #f9f9f9
}
.page-contents .ui-accordion .ui-accordion-content h4 {margin-bottom:20px}


/*
-----------------------------------------------------------------------------
박스형 컬럼 디자인
-----------------------------------------------------------------------------
*/
.page-contents .box-contents-col2 { display:flex; flex-wrap:wrap; justify-content: space-between }
.page-contents .box-contents-col2 .col { width:585px; background:#f9f9f9; margin-bottom:30px }
.page-contents .box-contents-col2 .col .content { color:#656565; border-top:1px solid #cccfd6; margin:0 36px 50px 36px }
.page-contents .box-contents-col2 .col .content h3 { color:#191919; font-size: 23px; font-weight: bold; padding-top:27px }
.page-contents .box-contents-col2 .col .content p { padding-top:27px }

.page-contents .box-contents-col3 { display:flex; flex-wrap: wrap; justify-content: space-between }
.page-contents .box-contents-col3 .col { width:380px; background:#f9f9f9; margin-bottom:30px }
.page-contents .box-contents-col3 .col .content { color:#353535; border-top:1px solid #cccfd6; margin:0 35px 50px 35px }
.page-contents .box-contents-col3 .col .content h3 { color:#191919; font-size: 23px; font-weight: bold; padding-top:27px; margin-bottom:0; text-align: center }
.page-contents .box-contents-col3 .col .content p { font-size:18px; padding-top:17px }

.page-contents .box-contents-col3 .col .content2 { color:#353535; margin:0 36px 27px 36px }
.page-contents .box-contents-col3 .col .content2 h3 { color:#191919; font-size: 23px; font-weight: bold; padding-top:27px; margin-bottom: 0; text-align: center }
.page-contents .box-contents-col3 .col .content2 p { font-size:18px; padding-top:17px }

.dropzone {
    margin:20px -20px; border:2px dotted #3a8afd; border-radius: 20px; padding:5px;
    display:flex; flex-wrap: wrap; justify-content: flex-start;
}
.dropzone .dz-message {
    width:100%;
    text-align: center;
}
.dropzone .dz-message .dz-button {
    font-size:30px;
    font-weight: 900;
    color:rgba(0,0,0,0.1);
}
.dropzone .dz-image,
.dropzone .dz-details { cursor:pointer }
.dropzone .dz-image img { width:120px; height:120px; }


/*
-----------------------------------------------------------------------------
에디터 저장 후 정렬 보존
-----------------------------------------------------------------------------
그누보드 기본 에디터(SmartEditor/CKEditor 계열)가 저장하는
align 속성 및 inline text-align/margin:auto를 테마의 전역 CSS가 덮어쓰지 않도록
페이지 본문에서 정렬 표현을 명시적으로 보존합니다.
*/
.page-contents [align="left"] { text-align: left !important; }
.page-contents [align="center"] { text-align: center !important; }
.page-contents [align="right"] { text-align: right !important; }
.page-contents [align="justify"] { text-align: justify !important; }

/* 표 자체를 가운데 정렬한 경우: <table align="center"> */
.page-contents table[align="center"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 에디터가 style 속성으로 가운데 정렬을 저장한 경우 */
.page-contents table[style*="margin-left: auto"],
.page-contents table[style*="margin-left:auto"],
.page-contents table[style*="margin-right: auto"],
.page-contents table[style*="margin-right:auto"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 가운데 정렬된 블록 내부의 표/이미지 */
.page-contents p[style*="text-align: center"] table,
.page-contents p[style*="text-align:center"] table,
.page-contents div[style*="text-align: center"] table,
.page-contents div[style*="text-align:center"] table {
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-contents p[style*="text-align: center"] img,
.page-contents p[style*="text-align:center"] img,
.page-contents div[style*="text-align: center"] img,
.page-contents div[style*="text-align:center"] img {
    display: inline-block;
}

/* 표준 그누보드 새글 쓰기 버튼 */
.view-page-buttons .buttons .btn.new-write {
    font-weight: 600;
}


/* 표 선택 삭제 도구 */
.write-table-tools {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:10px 0 0;
}
.write-table-tools .btn-table-delete {
    border:1px solid #d6d6d6;
    background:#fff;
    color:#555;
    padding:8px 14px;
    border-radius:4px;
    font-size:14px;
    cursor:pointer;
}
.write-table-tools .btn-table-delete:hover { background:#f5f5f5; }
.write-table-tools .table-help { font-size:13px; color:#999; }
@media (max-width:640px) {
    .write-table-tools { flex-direction:column; gap:6px; }
}


/* 페이지 게시판 글쓰기 - 분류 선택 */
.page-category-select{margin:0 0 15px;padding:0}
.page-category-select label{display:block;margin:0 0 6px;font-weight:600}
.page-category-select select{width:100%;max-width:420px;height:42px;padding:0 12px;border:1px solid #ddd;background:#fff;font-size:14px}

/*
================================================================================
    반응형 페이지 / 분류 탭 메뉴
================================================================================
*/
.page-category {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.page-category ul {
    display: flex;
    width: 100%;
    min-width: max-content;
    margin: 0;
    padding: 0;
}
.page-category ul li {
    flex: 1 1 0;
    width: auto;
    min-width: 120px;
    list-style: none;
}
.page-category ul li a {
    box-sizing: border-box;
    white-space: nowrap;
}
.page-category.fixed {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.page-contents,
.page-contents * {
    box-sizing: border-box;
}
.page-contents img,
.page-contents video,
.page-contents iframe {
    max-width: 100%;
}
.page-contents iframe {
    width: 100%;
}
.page-contents table {
    max-width: 100%;
}
.page-contents .layout_2col {
    gap: 30px;
}
.page-contents .layout_2col .col1,
.page-contents .layout_2col .col2 {
    width: calc(50% - 15px);
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
}
.page-contents .box-contents-col2 .col,
.page-contents .box-contents-col3 .col {
    max-width: 100%;
}

/* 긴 표/에디터 표는 화면 밖으로 밀어내지 않고 가로 스크롤 */
.page-contents .table-responsive,
.page-contents .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.page-contents table.type1 {
    min-width: 520px;
}

@media (max-width: 1024px) {
    #cke_document-editor { margin-left: 0; margin-right: 0; }

    .page-contents { font-size: 17px; }
    .page-contents .section { padding-bottom: 70px; }
    .page-contents .section h2 { font-size: 36px; padding-top: 120px; }

    .page-contents .box-contents-col2 .col {
        width: calc(50% - 15px);
    }
    .page-contents .box-contents-col3 .col {
        width: calc(33.333% - 20px);
    }

    .view-page-buttons .buttons {
        right: 0;
    }
}

@media (max-width: 768px) {
    .page-category ul {
        width: max-content;
        min-width: 100%;
    }
    .page-category ul li {
        flex: 0 0 auto;
        min-width: 110px;
    }
    .page-category ul li a {
        padding: 10px 18px;
        font-size: 16px;
    }

    .page-contents { font-size: 16px; line-height: 1.65; }
    .page-contents .section { padding-bottom: 50px; }
    .page-contents .section h2,
    .page-contents .title-section h2 {
        font-size: 30px;
        padding-top: 80px;
    }
    .page-contents h1 { font-size: 32px; }
    .page-contents h2 { font-size: 22px; }
    .page-contents h3 { font-size: 19px; }

    .page-contents .layout_2col {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .page-contents .layout_2col .col1,
    .page-contents .layout_2col .col2 {
        width: 100%;
        margin: 0;
    }

    .page-contents .box-contents-col2,
    .page-contents .box-contents-col3 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .page-contents .box-contents-col2 .col,
    .page-contents .box-contents-col3 .col {
        width: 100%;
        margin-bottom: 0;
    }

    .page-contents #box.box-type1 {
        padding: 25px;
    }
    .page-contents .ui-accordion .ui-accordion-header {
        padding: 14px 18px;
        line-height: 1.5;
        font-size: 17px;
    }
    .page-contents .ui-accordion .ui-accordion-content {
        padding: 28px 20px;
        font-size: 15px;
    }

    .view-page-buttons .buttons {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 0;
    }
    .view-page-buttons .buttons .btn {
        width: auto;
        height: auto;
        min-height: 36px;
        padding: 8px 10px;
        overflow: visible;
        margin: 0;
        font-size: 13px;
    }
    .view-page-buttons .buttons .btn:hover {
        width: auto;
        margin-right: 0;
    }

    .write-page-buttons {
        gap: 8px;
    }
    .write-page-buttons .btn {
        width: 50%;
        font-size: 16px;
    }

    .pop-layer {
        width: calc(100% - 24px);
        max-width: 510px;
    }
    .pop-layer .pop-container {
        padding: 16px;
    }
    #page-history .pop-container ul li {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }
    #page-history .history-load-btn {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .page-category ul li { min-width: 92px; }
    .page-category ul li a {
        padding: 9px 12px;
        font-size: 14px;
    }
    .page-contents { font-size: 15px; }
    .page-contents .section h2,
    .page-contents .title-section h2 {
        font-size: 25px;
        padding-top: 55px;
    }
    .page-contents h1 { font-size: 28px; }
    .page-contents #box.box-type1 { padding: 18px; }
    .page-contents .ui-accordion .ui-accordion-content { padding: 20px 15px; }
    .write-page-buttons .btn { font-size: 14px; }
}


/*
================================================================================
    V16 웹접근성 보강
    WCAG 2.2 키보드 접근성 / 포커스 가시성 / reduced motion
================================================================================
*/

/* 키보드 포커스는 마우스 hover와 구별되도록 항상 명확하게 표시합니다. */
.page-category a:focus-visible,
.page-contents a:focus-visible,
.view-page-buttons a:focus-visible,
.view-page-buttons button:focus-visible,
.write-page-buttons a:focus-visible,
.write-page-buttons button:focus-visible,
.write-table-tools button:focus-visible,
.page-category-select select:focus-visible,
.write-page-editor textarea:focus-visible,
.pop-layer a:focus-visible,
.pop-layer button:focus-visible,
.pop-layer input:focus-visible,
.pop-layer select:focus-visible,
.pop-layer textarea:focus-visible {
    outline: 3px solid #1a5fb4;
    outline-offset: 3px;
}

/* 구형 브라우저에서도 포커스가 사라지지 않도록 기본 focus를 유지합니다. */
.page-category a:focus,
.page-contents a:focus,
.view-page-buttons a:focus,
.view-page-buttons button:focus,
.write-page-buttons a:focus,
.write-page-buttons button:focus,
.write-table-tools button:focus,
.page-category-select select:focus,
.pop-layer a:focus,
.pop-layer button:focus {
    outline: 2px solid #1a5fb4;
    outline-offset: 2px;
}

/* 고정 메뉴에 가려지지 않도록 키보드로 이동되는 대상에 여백을 확보합니다. */
.page-category a,
.page-contents a,
.page-contents button,
.view-page-buttons a,
.view-page-buttons button,
.write-page-buttons a,
.write-page-buttons button {
    scroll-margin-top: 72px;
}

/* 페이지 본문은 스크립트에서 포커스를 이동할 수 있는 랜드마크입니다. */
#page-contents[tabindex="-1"]:focus {
    outline: none;
}

/* 링크/버튼의 클릭 영역을 너무 작게 만들지 않습니다. */
.page-category ul li a,
.view-page-buttons .buttons .btn,
.write-page-buttons .btn,
.write-table-tools .btn-table-delete,
.pop-layer .btn-layerClose {
    min-height: 44px;
}

/* 팝업이 화면 높이를 넘지 않도록 내부에서 스크롤할 수 있게 합니다. */
.dim-layer {
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.pop-layer {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    margin: 0 !important;
    transform: translate(-50%, -50%);
}

.dim-layer .pop-layer {
    display: block;
}

/* 에디터/분류 선택의 입력 목적을 시각적으로도 명확하게 유지합니다. */
.page-category-select select:focus {
    border-color: #1a5fb4;
}

/* 표 편집 안내문도 충분한 대비를 유지합니다. */
.write-table-tools .table-help {
    color: #555;
}

/* 사용자가 애니메이션 감소를 선택한 경우 전환/스크롤 효과를 최소화합니다. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .dim-layer {
        padding: 12px;
    }
    .pop-layer {
        max-height: calc(100vh - 24px);
    }
}
