/* FAQ 전체 래퍼 */
#faq_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* FAQ 헤더 */
.faq_header {
    text-align: left;
    margin-bottom: 40px;
}

.faq_title {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.faq_subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 카테고리 탭 */
.faq_category {
    margin-bottom: 40px;
}

.faq_tab_list {
    display: flex;
    justify-content: start;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.faq_tab_list li {
    list-style: none;
}

.faq_tab_list li a {
    display: inline-block;
    padding: 10px 24px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq_tab_list li a:hover {
    background: #fff;
    border-color: #333;
    color: #333;
}

.faq_tab_list li.active a {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    font-weight: 500;
}

/* FAQ 목록 */
.faq_list_wrap {
    min-height: 400px;
}

.faq_list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.faq_item {
    border-bottom: 1px solid #e0e0e0;
}

.faq_question {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq_question:hover {
}

.faq_q_icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
}

.faq_q_text {
    flex: 1;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
}

.faq_toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #999;
    transition: transform 0.3s ease;
}

.faq_item.active .faq_toggle {
    transform: rotate(180deg);
}

.faq_answer {
    display: none;
    padding: 20px 0 30px 47px;
}

.faq_item.active .faq_answer {
    display: flex;
    gap: 15px;
}

.faq_a_icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.faq_a_content {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
}

/* 빈 상태 */
.faq_empty {
    text-align: center;
    padding: 100px 20px;
}

.faq_empty p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* 페이징 */
#faq_wrap .pg_wrap {
    text-align: center;
    margin: 40px 0;
}

/* 관리자 버튼 */
.faq_admin_btn {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.faq_admin_btn a {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 5px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.faq_admin_btn a:hover {
    background: #333;
}

.faq_admin_btn .btn_admin {
    background: #666;
}

.faq_admin_btn .btn_admin:hover {
    background: #888;
}

.faq_admin_btn .btn_tab_config {
    background: #ff6e0e;
}

.faq_admin_btn .btn_tab_config:hover {
    background: #ff8c3a;
}

/* 글쓰기/수정 */
#bo_w {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

#bo_w .write_div {
    margin: 10px 0;
    position: relative;
}

#bo_w .write_div:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

#bo_w .bo_w_select select {
    border: 1px solid #d0d3db;
    width: 100%;
    height: 40px;
    border-radius: 3px;
    padding: 0 10px;
}

#bo_w .bo_w_info:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

#bo_w .bo_w_info .frm_input {
    float: left;
    margin-bottom: 1%;
    width: 49%;
}

#bo_w .frm_input {
    border: 1px solid #d0d3db;
    padding: 10px;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

#bo_w .half_input {
    width: 49%;
}

#bo_w #wr_password,
#bo_w #wr_homepage {
    margin-left: 2%;
}

#bo_w .bo_v_option li {
    display: inline-block;
    float: left;
    text-align: left;
    margin: 0 15px 0 0;
}

.chk_box {
    position: relative;
}

.chk_box input[type="checkbox"] + label {
    position: relative;
    color: #676e70;
    padding-left: 25px;
    cursor: pointer;
}

.chk_box input[type="checkbox"] + label span {
    position: absolute;
    top: 2px;
    left: 0;
    width: 18px;
    height: 18px;
    display: block;
    background: #fff;
    border: 1px solid #d0d4df;
    border-radius: 3px;
}

.chk_box input[type="checkbox"]:checked + label span {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.chk_box input[type="checkbox"]:checked + label span:after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 3px;
    color: #fff;
    font-size: 14px;
}

.selec_chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#bo_w .bo_w_tit {
    position: relative;
}

#bo_w .bo_w_tit .frm_input {
    padding-right: 120px;
}

#bo_w .bo_w_tit #btn_autosave {
    position: absolute;
    top: 5px;
    right: 5px;
    line-height: 30px;
    height: 30px;
    padding: 0 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

#bo_w .wr_content {
    margin: 10px 0;
}

#bo_w .wr_content iframe {
    width: 100%;
    min-height: 400px;
}

#bo_w .bo_w_link label {
    position: absolute;
    top: 1px;
    left: 1px;
    border-radius: 3px 0 0 3px;
    height: 38px;
    line-height: 38px;
    width: 40px;
    font-size: 1.2em;
    text-align: center;
    color: #b2b2b2;
}

#bo_w .bo_w_link .frm_input {
    padding-left: 50px;
}

#bo_w .bo_w_flie .lb_icon {
    position: absolute;
    top: 0px;
    left: 0px;
    border-radius: 3px 0 0 3px;
    height: 38px;
    line-height: 38px;
    width: 40px;
    font-size: 1.2em;
    text-align: center;
    color: #b2b2b2;
}

#bo_w .bo_w_flie .frm_file {
    padding-left: 50px;
    margin-top: 3px;
}

#bo_w .bo_w_flie .file_wr {
    position: relative;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    vertical-align: middle;
    border-radius: 3px;
    padding: 5px;
    height: 40px;
    margin: 0;
}

#bo_w .bo_w_flie .frm_input {
    margin: 10px 0 0;
}

#bo_w .bo_w_flie .file_del {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.92em;
    color: #7d7d7d;
}

#bo_w .btn_confirm {
    margin-top: 20px;
    text-align: center;
}

#bo_w .btn_submit {
    padding: 12px 40px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 5px;
}

#bo_w .btn_submit:hover {
    background: #333;
}

#bo_w .btn_cancel {
    padding: 12px 40px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

#bo_w .btn_cancel:hover {
    background: #e5e5e5;
}

/* 임시저장 팝업 */
#autosave_wrapper {
    position: relative;
}

#autosave_pop {
    display: none;
    z-index: 10;
    position: absolute !important;
    top: 45px;
    right: 0;
    width: 350px;
    max-height: 180px;
    border: 1px solid #565656;
    background: #fff;
    box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
}

#autosave_pop ul {
    padding: 15px;
    border-top: 1px solid #e9e9e9;
    list-style: none;
    overflow-y: scroll;
    height: 130px;
    border-bottom: 1px solid #e8e8e8;
}

#autosave_pop li {
    padding: 8px 5px;
    border-bottom: 1px solid #fff;
    background: #eee;
}

.autosave_close {
    cursor: pointer;
    width: 100%;
    height: 30px;
    background: none;
    color: #888;
    font-weight: bold;
    font-size: 0.92em;
    border: none;
}

/* 글보기 */
#bo_v {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #fff;
}

#bo_v_title {
    padding: 20px 0;
    border-bottom: 2px solid #1a1a1a;
}

#bo_v_title .bo_v_tit {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 10px 0;
}

#bo_v_info {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
}

#bo_v_con {
    margin: 30px 0;
    line-height: 1.8;
    color: #333;
    min-height: 200px;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
}

/* 하단 버튼 영역 */
.bo_v_bottom {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.bo_v_com {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bo_v_com li {
    list-style: none;
}

.bo_v_com a {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.bo_v_com a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.bo_v_com .btn_b02 {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.bo_v_com .btn_b02:hover {
    background: #333;
}

/* 이전글/다음글 */
.bo_v_nb {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    border-top: 1px solid #e0e0e0;
}

.bo_v_nb li {
    list-style: none;
    border-bottom: 1px solid #e0e0e0;
}

.bo_v_nb a {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.bo_v_nb a:hover {
    background: #f5f5f5;
}

.bo_v_nb .nb_tit {
    display: inline-block;
    min-width: 60px;
    color: #666;
    font-weight: bold;
    margin-right: 10px;
}

.bo_v_nb i {
    color: #999;
    margin-right: 5px;
}

/* 카테고리 배지 */
.view_category {
    display: inline-block;
    padding: 4px 12px;
    background: #ff6e0e;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 정보 메타 */
.view_meta {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.view_meta span {
    margin-right: 15px;
}

.view_meta i {
    margin-right: 5px;
    color: #999;
}

/* 첨부파일 */
#bo_v_file h2 {
    font-size: 16px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

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

#bo_v_file li {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 4px;
}

#bo_v_file a {
    color: #333;
    text-decoration: none;
}

#bo_v_file a:hover {
    color: #ff6e0e;
}

#bo_v_file i {
    margin-right: 8px;
    color: #ff6e0e;
}

/* 관련링크 */
#bo_v_link h2 {
    font-size: 16px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

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

#bo_v_link li {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 4px;
}

#bo_v_link a {
    color: #333;
    text-decoration: none;
}

#bo_v_link a:hover {
    color: #ff6e0e;
}

#bo_v_link i {
    margin-right: 8px;
    color: #ff6e0e;
}

/* 반응형 */
@media (max-width: 768px) {
    #faq_wrap {
        padding: 40px 15px;
    }

    .faq_title {
        font-size: 24px;
    }

    .faq_subtitle {
        font-size: 14px;
    }

    .faq_tab_list {
        gap: 8px;
    }

    .faq_tab_list li a {
        padding: 8px 16px;
        font-size: 13px;
    }

    .faq_q_text {
        font-size: 14px;
    }

    .faq_answer {
        padding-left: 20px;
    }

    .faq_a_content {
        font-size: 14px;
    }

    #bo_w {
        padding: 20px 15px;
    }

    #bo_w .bo_w_info .frm_input {
        width: 100%;
        margin-left: 0 !important;
    }

    #bo_w .half_input {
        width: 100%;
    }

    #bo_v_title .bo_v_tit {
        font-size: 20px;
    }
}
