/* FAQ 게시판 스킨 스타일 */

#faq_wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

#faq_wrap h2.faq_title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
}

/* 카테고리 탭 */
#faq_cate {
    margin-bottom: 25px;
}
#faq_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
#faq_cate ul li a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
#faq_cate ul li a:hover,
#faq_cate ul li a.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 검색/정보 바 */
#faq_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
#faq_total {
    font-size: 14px;
    color: #777;
}
.faq_admin_btns a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 5px;
}
.faq_admin_btns a:hover {
    background: #f5f5f5;
}

/* FAQ 아코디언 리스트 */
.faq_list {
    border-top: 2px solid #333;
}
.faq_item {
    border-bottom: 1px solid #e5e5e5;
}

/* 질문 (클릭 영역) */
.faq_question {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    cursor: pointer;
    transition: background-color 0.15s;
    position: relative;
}
.faq_question:hover {
    background-color: #f8f9fa;
}
.faq_question .faq_q_icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #007bff;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}
.faq_question .faq_q_text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}
.faq_question .faq_q_cate {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    color: #007bff;
    background: #e8f0fe;
    border-radius: 3px;
    margin-right: 10px;
    font-weight: 400;
}
.faq_question .faq_arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq_question .faq_arrow::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin-top: -4px;
}
.faq_item.active .faq_question {
    background-color: #f0f7ff;
}
.faq_item.active .faq_question .faq_q_icon {
    background-color: #0056b3;
}
.faq_item.active .faq_arrow {
    transform: rotate(180deg);
}

/* 답변 (숨김 영역) */
.faq_answer {
    display: none;
    padding: 0 15px 20px 62px;
    background-color: #f8f9fa;
    border-top: 1px dashed #ddd;
}
.faq_answer_inner {
    padding: 20px 0;
}
.faq_answer .faq_a_icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #28a745;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    float: left;
    margin-left: -47px;
}
.faq_answer .faq_a_content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    word-break: keep-all;
}
.faq_answer .faq_a_content p {
    margin: 0 0 10px;
}
.faq_answer .faq_a_content img {
    max-width: 100%;
    height: auto;
}

/* 수정 버튼 */
.faq_edit_btn {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}
.faq_edit_btn a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: #fff;
    background: #6c757d;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.faq_edit_btn a:hover {
    background: #555;
}

/* 빈 목록 */
.faq_empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
    border-bottom: 1px solid #e5e5e5;
}

/* 페이징 */
#faq_pages {
    margin: 30px 0;
    text-align: center;
}

/* 검색 */
#faq_search {
    margin: 20px 0 30px;
    text-align: center;
}
#faq_search .faq_sch_wrap {
    display: inline-flex;
    border: 2px solid #007bff;
    border-radius: 30px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}
#faq_search select {
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    background: #f8f9fa;
    outline: none;
    color: #555;
}
#faq_search input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
#faq_search button {
    border: none;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}
#faq_search button:hover {
    background: #0056b3;
}

/* 글쓰기/수정 */
#bo_w {
    max-width: 960px;
    margin: 0 auto 30px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
#bo_w h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
}
#bo_w .write_div {
    margin: 12px 0;
    position: relative;
}
#bo_w .write_div:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
#bo_w .bo_w_select select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d3db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}
#bo_w .bo_w_select select:focus {
    border-color: #007bff;
}
#bo_w .frm_input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d0d3db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
#bo_w .frm_input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
#bo_w .half_input {
    width: 49%;
    float: left;
}
#bo_w .full_input {
    width: 100%;
}
#bo_w .bo_w_info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#bo_w .bo_w_info:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
#bo_w .bo_w_info .frm_input {
    flex: 1;
    min-width: 180px;
    margin: 0;
}
#bo_w #wr_password,
#bo_w #wr_homepage {
    margin-left: 0;
}
#bo_w .bo_w_tit {
    position: relative;
}
#bo_w .bo_w_tit .frm_input {
    padding-right: 140px;
    font-size: 16px;
    height: 48px;
    font-weight: 500;
}
#bo_w .bo_w_tit #btn_autosave {
    position: absolute;
    top: 7px;
    right: 7px;
    height: 34px;
    line-height: 34px;
    padding: 0 12px;
    border: 1px solid #d0d3db;
    border-radius: 4px;
    background: #f8f9fa;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}
#bo_w .bo_w_tit #btn_autosave:hover {
    background: #e9ecef;
}
#bo_w .wr_content textarea,
#bo_w .wr_content .note-editor {
    width: 100%;
    min-height: 300px;
    padding: 12px;
    border: 1px solid #d0d3db;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    background: #fff;
    color: #333;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
#bo_w .wr_content textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
#bo_w .bo_v_option {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}
#bo_w .bo_v_option li {
    display: inline-flex;
    align-items: center;
}
#bo_w .bo_v_option li label {
    vertical-align: baseline;
    cursor: pointer;
}

/* 체크박스 */
#bo_w .selec_chk {
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    opacity: 0;
    z-index: -1;
    overflow: hidden;
}
#bo_w .chk_box {
    position: relative;
}
#bo_w .chk_box input[type="checkbox"] + label {
    position: relative;
    color: #555;
    padding-left: 22px;
    cursor: pointer;
}
#bo_w .chk_box input[type="checkbox"] + label span {
    position: absolute;
    top: 2px; left: 0;
    width: 16px; height: 16px;
    display: block;
    background: #fff;
    border: 1px solid #d0d4df;
    border-radius: 3px;
}
#bo_w .chk_box input[type="checkbox"]:checked + label {
    color: #333;
}
#bo_w .chk_box input[type="checkbox"]:checked + label span {
    background: #007bff;
    border-color: #007bff;
}

/* 링크 입력 */
#bo_w .bo_w_link {
    position: relative;
}
#bo_w .bo_w_link label {
    position: absolute;
    top: 1px; left: 1px;
    border-radius: 6px 0 0 6px;
    height: 42px;
    line-height: 42px;
    width: 42px;
    font-size: 1.1em;
    text-align: center;
    color: #aaa;
    background: #f8f9fa;
}
#bo_w .bo_w_link .frm_input {
    padding-left: 50px;
}

/* 파일 첨부 */
#bo_w .bo_w_flie {
    position: relative;
}
#bo_w .bo_w_flie .file_wr {
    position: relative;
    border: 1px solid #d0d3db;
    background: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0;
}
#bo_w .bo_w_flie .lb_icon {
    position: absolute;
    top: 0; left: 0;
    height: 42px;
    line-height: 42px;
    width: 42px;
    font-size: 1.1em;
    text-align: center;
    color: #aaa;
}
#bo_w .bo_w_flie .frm_file {
    padding-left: 40px;
    margin-top: 3px;
}
#bo_w .bo_w_flie .frm_input {
    margin: 8px 0 0;
}
#bo_w .bo_w_flie .file_del {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 13px;
    color: #888;
}

/* 글자수 제한 */
#char_count_desc {
    display: block;
    margin: 0 0 5px;
    padding: 0;
    font-size: 13px;
    color: #888;
}
#char_count_wrap {
    margin: 5px 0 0;
    text-align: right;
    font-size: 13px;
    color: #888;
}
#char_count {
    font-weight: bold;
    color: #007bff;
}

/* 임시저장 팝업 */
#autosave_wrapper {
    position: relative;
}
#autosave_pop {
    display: none;
    z-index: 10;
    position: absolute !important;
    top: 52px; right: 0;
    width: 350px;
    max-height: 220px;
    border: 1px solid #d0d3db;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
#autosave_pop strong {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
#autosave_pop div {
    text-align: center;
    margin: 0 !important;
}
#autosave_pop button {
    margin: 0;
    padding: 0;
    border: 0;
}
#autosave_pop ul {
    padding: 10px;
    list-style: none;
    overflow-y: auto;
    max-height: 150px;
    border-bottom: 1px solid #eee;
}
#autosave_pop li {
    padding: 8px;
    border-bottom: 1px solid #f5f5f5;
    border-radius: 4px;
}
#autosave_pop li:hover {
    background: #f0f7ff;
}
#autosave_pop a {
    display: block;
    float: left;
    color: #333;
}
#autosave_pop span {
    display: block;
    float: right;
    font-size: 12px;
    color: #999;
}
.autosave_close {
    cursor: pointer;
    width: 100%;
    height: 36px;
    background: #f8f9fa;
    color: #666;
    font-weight: bold;
    font-size: 13px;
    border: none;
    border-radius: 0 0 8px 8px;
}
.autosave_close:hover {
    background: #e9ecef;
}

/* 캡챠 */
#bo_w #captcha {
    margin: 10px 0;
}

/* 하단 버튼 */
#bo_w .btn_confirm {
    margin: 25px 0;
    text-align: center;
}
#bo_w .btn_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 36px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    vertical-align: middle;
    box-sizing: border-box;
}
#bo_w .btn_submit:hover {
    background: #0056b3;
}
#bo_w .btn_cancel {
    display: inline-block;
    height: 44px;
    line-height: 42px;
    padding: 0 36px;
    background: #fff;
    color: #555;
    border: 1px solid #d0d3db;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 8px;
    transition: background 0.2s;
    vertical-align: middle;
}
#bo_w .btn_cancel:hover {
    background: #f5f5f5;
}

/* 게시판 읽기 (view) */
#bo_v {
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 0 15px;
}
#bo_v #bo_v_title .bo_v_cate {
    display: inline-block;
    line-height: 20px;
    background: #e8f0fe;
    color: #007bff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 13px;
}
#bo_v #bo_v_title .bo_v_tit {
    display: block;
    font-size: 1.8em;
    margin: 5px 0 0;
    word-break: break-all;
}
#bo_v_info {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    color: #666;
}
#bo_v_info:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
#bo_v_info h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
#bo_v_info .profile_info {
    display: inline-block;
    float: left;
    margin: 10px 0;
}
#bo_v_info .profile_info .pf_img {
    float: left;
    margin-right: 10px;
}
#bo_v_info .profile_info .pf_img img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}
#bo_v_info .profile_info .profile_info_ct {
    float: left;
    padding: 5px 0;
    line-height: 18px;
}
#bo_v_info strong {
    display: inline-block;
    margin: 0 10px 0 0;
    font-weight: normal;
}
#bo_v_info .if_date {
    color: #888;
}
#bo_v_atc {
    min-height: 200px;
}
#bo_v_atc_title {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
#bo_v_con {
    margin: 15px 0 30px;
    line-height: 1.7;
    min-height: 200px;
    word-break: break-all;
}
#bo_v_con img {
    max-width: 100%;
    height: auto;
}
#bo_v_share {
    padding: 15px 0;
}
#bo_v_share:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
#bo_v_top {
    zoom: 1;
}
#bo_v_top:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
.btn_bo_user {
    float: right;
    margin: 0;
    padding: 0;
    list-style: none;
}
.btn_bo_user li {
    float: left;
    width: 40px;
    text-align: center;
    margin-left: 5px;
    background: #fff;
}
.btn_bo_user > li {
    position: relative;
}
.btn {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border: 1px solid #d0d3db;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
}
.btn:hover {
    background: #f5f5f5;
}
.more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border: 1px solid #d0d3db;
    border-radius: 6px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}
.more_opt li {
    border-bottom: 1px solid #f1f1f1;
    padding: 10px 15px;
    float: inherit;
    width: 90px;
    margin: 0;
    color: #555;
    text-align: left;
    list-style: none;
}
.more_opt li:last-child {
    border-bottom: 0;
}
.more_opt li button,
.more_opt li a {
    width: 100%;
    border: 0;
    background: #fff;
    color: #555;
    text-decoration: none;
}
.more_opt li:hover a,
.more_opt li:hover button {
    color: #007bff;
}
.more_opt li i {
    float: right;
    line-height: 20px;
}

/* 댓글 */
.cmt_btn {
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
    font-weight: bold;
    margin: 30px 0 0;
    padding: 0 0 15px;
    cursor: pointer;
}
.cmt_btn span.total {
    color: #007bff;
}
#bo_vc {
    margin-bottom: 20px;
}
#bo_vc h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
#bo_vc article {
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
#bo_vc article:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
#bo_vc article .pf_img {
    float: left;
    margin-right: 10px;
}
#bo_vc article .pf_img img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
#bo_vc article .cm_wrap {
    float: left;
    max-width: 90%;
    width: 90%;
}
#bo_vc .cmt_contents {
    line-height: 1.8;
    padding: 5px 0 15px;
    color: #555;
}
#bo_vc_empty {
    padding: 50px 0;
    color: #999;
    text-align: center;
}
.bo_vc_w {
    position: relative;
    margin: 10px 0;
    display: block;
}
.bo_vc_w h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
.bo_vc_w textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #d0d3db;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.bo_vc_w textarea:focus {
    border-color: #007bff;
}
.bo_vc_w .bo_vc_w_info {
    margin: 8px 0;
}
.bo_vc_w .bo_vc_w_info .frm_input {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d0d3db;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
    outline: none;
}
.bo_vc_w .btn_confirm {
    margin-top: 8px;
}
.bo_vc_w .btn_submit {
    height: 40px;
    padding: 0 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.bo_vc_w .btn_submit:hover {
    background: #0056b3;
}
.secret_cm {
    display: inline-block;
    float: left;
    margin-right: 10px;
    line-height: 40px;
}
.bo_vc_act {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    width: 60px;
    text-align: right;
    border: 1px solid #d0d3db;
    border-radius: 6px;
    margin: 0;
    list-style: none;
    background: #fff;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}
.bo_vc_act li {
    border-bottom: 1px solid #f0f0f0;
}
.bo_vc_act li:last-child {
    border-bottom: 0;
}
.bo_vc_act li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}
.bo_vc_act li a:hover {
    color: #007bff;
    background: #f0f7ff;
}
#bo_vc .bo_vl_opt {
    position: absolute;
    top: 0;
    right: 0;
}
.btn_cm_opt {
    border: 1px solid #d0d3db;
    background: #fff;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #999;
}
.btn_cm_opt:hover {
    background: #f5f5f5;
}

/* 반응형 */
@media (max-width: 768px) {
    #faq_wrap h2.faq_title {
        font-size: 22px;
        margin: 20px 0;
    }
    #faq_cate ul {
        gap: 5px;
    }
    #faq_cate ul li a {
        padding: 6px 12px;
        font-size: 13px;
    }
    .faq_question {
        padding: 15px 10px;
    }
    .faq_question .faq_q_icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 10px;
    }
    .faq_question .faq_q_text {
        font-size: 14px;
    }
    .faq_question .faq_q_cate {
        display: none;
    }
    .faq_answer {
        padding: 0 10px 15px 48px;
    }
    .faq_answer .faq_a_icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        line-height: 28px;
        margin-left: -38px;
    }
    .faq_answer .faq_a_content {
        font-size: 14px;
    }
    #faq_top {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
