@charset "utf-8";

/* 2026-02-03 수정: FAQ 게시판 모바일 반응형 아코디언 스타일 */

/* ============================================
   FAQ 게시판 기본 스타일
   ============================================ */

/* FAQ 컨테이너 */
.board-faq {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.board-faq .list-wrap {
    width: 100%;
}

/* FAQ 헤더 */
.board-faq .faq-header {
    padding: 15px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 0;
}

.board-faq .faq-count {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.board-faq .faq-count b {
    color: #333;
    font-weight: 600;
}

/* ============================================
   FAQ 아코디언 스타일
   ============================================ */

.board-faq .faq-accordion {
    border-bottom: 1px solid #e0e0e0;
}

/* FAQ 개별 아이템 */
.board-faq .faq-item {
    border-top: 1px solid #e0e0e0;
    background: #fff;
    transition: background-color 0.2s ease;
}

.board-faq .faq-item:first-child {
    border-top: none;
}

.board-faq .faq-item.faq-notice {
    background: #f8f9fa;
}

.board-faq .faq-item.active {
    background: #fff;
}

/* 질문 영역 */
.board-faq .faq-question {
    display: flex;
    align-items: flex-start;
    padding: 18px 15px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}

.board-faq .faq-question:hover {
    background: #f8f9fa;
}

.board-faq .faq-question:active {
    background: #f0f0f0;
}

/* 터치 디바이스에서 hover 효과 제거 */
.board-faq.touch-device .faq-question:hover {
    background: transparent;
}

.board-faq.touch-device .faq-item.active .faq-question:hover {
    background: #f8f9fa;
}

/* Q 아이콘 */
.board-faq .faq-q-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #2c3e50;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 질문 내용 */
.board-faq .faq-q-content {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

/* 카테고리 뱃지 */
.board-faq .faq-category {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    margin-bottom: 4px;
    background: #e9ecef;
    color: #495057;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    vertical-align: middle;
}

/* 제목 */
.board-faq .faq-subject {
    display: inline;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    word-break: keep-all;
    word-wrap: break-word;
}

/* 토글 아이콘 */
.board-faq .faq-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    margin-top: 4px;
    flex-shrink: 0;
    color: #999;
    transition: transform 0.3s ease, color 0.2s ease;
}

.board-faq .faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: #2c3e50;
}

/* ============================================
   답변 영역
   ============================================ */

.board-faq .faq-answer {
    display: none;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

.board-faq .faq-item.active .faq-answer {
    display: block;
    animation: faqSlideDown 0.3s ease;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 답변 래퍼 */
.board-faq .faq-a-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 18px 15px;
}

/* A 아이콘 */
.board-faq .faq-a-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 답변 내용 */
.board-faq .faq-a-content {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    word-break: keep-all;
    word-wrap: break-word;
}

.board-faq .faq-a-content p {
    margin: 0 0 10px;
}

.board-faq .faq-a-content p:last-child {
    margin-bottom: 0;
}

.board-faq .faq-a-content img {
    max-width: 100%;
    height: auto;
}

/* 로딩 표시 */
.board-faq .faq-loading {
    color: #999;
    font-size: 13px;
}

/* 메타 정보 */
.board-faq .faq-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 15px 12px 59px;
    border-top: 1px dashed #e0e0e0;
    font-size: 12px;
    color: #888;
}

.board-faq .faq-meta span {
    display: inline-flex;
    align-items: center;
}

.board-faq .faq-detail-link {
    margin-left: auto;
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
}

.board-faq .faq-detail-link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* ============================================
   빈 목록 스타일
   ============================================ */

.board-faq .faq-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.board-faq .faq-empty-icon {
    margin-bottom: 16px;
}

.board-faq .faq-empty p {
    margin: 0;
    font-size: 15px;
}

/* ============================================
   검색 영역
   ============================================ */

.board-faq .faq-search {
    border: none;
    padding: 20px 0;
    margin: 0;
    width: 100%;
    background: transparent;
}

.board-faq .faq-search-box {
    display: flex;
    align-items: stretch;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.board-faq .faq-search-select {
    flex: 0 0 100px;
}

.board-faq .faq-search-select select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.board-faq .faq-search-input {
    flex: 1;
}

.board-faq .faq-search-input input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.board-faq .faq-search-input input:focus {
    border-color: #2c3e50;
    outline: none;
}

.board-faq .faq-search-btn {
    flex: 0 0 auto;
}

.board-faq .faq-search-btn button {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    background: #2c3e50;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.board-faq .faq-search-btn button:hover {
    background: #34495e;
}

.board-faq .faq-search-btn button:active {
    background: #1a252f;
}

/* ============================================
   버튼 영역
   ============================================ */

.board-faq .list-btn-box {
    margin: 20px 0 15px;
}

.board-faq .list-btn-box a span,
.board-faq .list-btn-box button span {
    margin-left: 4px;
}

/* ============================================
   페이지네이션
   ============================================ */

.board-faq .list-page {
    margin: 15px 0 20px;
}

.board-faq .list-page .pagination {
    margin: 0;
}

/* ============================================
   모바일 반응형 (768px 이하)
   ============================================ */

@media all and (max-width: 768px) {
    .board-faq .faq-header {
        padding: 12px 10px;
    }

    .board-faq .faq-question {
        padding: 15px 12px;
    }

    .board-faq .faq-q-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 14px;
        margin-right: 10px;
    }

    .board-faq .faq-subject {
        font-size: 14px;
    }

    .board-faq .faq-toggle-icon {
        width: 20px;
        height: 20px;
        margin-left: 8px;
    }

    .board-faq .faq-a-wrapper {
        padding: 15px 12px;
    }

    .board-faq .faq-a-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 14px;
        margin-right: 10px;
    }

    .board-faq .faq-a-content {
        font-size: 13px;
        line-height: 1.65;
    }

    .board-faq .faq-meta {
        padding: 10px 12px 10px 50px;
        gap: 8px;
        font-size: 11px;
    }

    .board-faq .faq-detail-link {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    /* 검색 영역 모바일 */
    .board-faq .faq-search {
        padding: 15px 10px;
    }

    .board-faq .faq-search-box {
        flex-wrap: wrap;
        gap: 8px;
    }

    .board-faq .faq-search-select {
        flex: 0 0 90px;
    }

    .board-faq .faq-search-select select {
        height: 38px;
        font-size: 12px;
    }

    .board-faq .faq-search-input {
        flex: 1 1 calc(100% - 98px - 60px);
        min-width: 0;
    }

    .board-faq .faq-search-input input {
        height: 38px;
        font-size: 13px;
    }

    .board-faq .faq-search-btn button {
        height: 38px;
        padding: 0 12px;
    }

    .board-faq .faq-search-text {
        display: none;
    }

    /* 버튼 영역 모바일 */
    .board-faq .list-btn-box {
        margin: 15px 10px;
    }

    .board-faq .list-btn-box .pull-right.list-btn {
        float: none !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .board-faq .list-btn-box .list-btn {
        text-align: center;
    }
}

/* ============================================
   소형 모바일 반응형 (480px 이하)
   ============================================ */

@media all and (max-width: 480px) {
    .board-faq .faq-header {
        padding: 10px 8px;
    }

    .board-faq .faq-count {
        font-size: 12px;
    }

    .board-faq .faq-question {
        padding: 12px 10px;
    }

    .board-faq .faq-q-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 13px;
        margin-right: 8px;
    }

    .board-faq .faq-q-content {
        padding-top: 2px;
    }

    .board-faq .faq-category {
        font-size: 10px;
        padding: 1px 6px;
        margin-right: 6px;
    }

    .board-faq .faq-subject {
        font-size: 13px;
    }

    .board-faq .faq-toggle-icon {
        margin-left: 6px;
    }

    .board-faq .faq-toggle-icon svg {
        width: 16px;
        height: 16px;
    }

    .board-faq .faq-a-wrapper {
        padding: 12px 10px;
    }

    .board-faq .faq-a-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 13px;
        margin-right: 8px;
    }

    .board-faq .faq-a-content {
        font-size: 12px;
        line-height: 1.6;
    }

    .board-faq .faq-meta {
        padding: 8px 10px 8px 44px;
        gap: 6px;
        font-size: 10px;
    }

    .board-faq .faq-empty {
        padding: 40px 15px;
    }

    .board-faq .faq-empty-icon svg {
        width: 48px;
        height: 48px;
    }

    .board-faq .faq-empty p {
        font-size: 13px;
    }

    /* 검색 영역 소형 모바일 */
    .board-faq .faq-search {
        padding: 12px 8px;
    }

    .board-faq .faq-search-box {
        flex-direction: column;
    }

    .board-faq .faq-search-select {
        flex: 0 0 auto;
        width: 100%;
    }

    .board-faq .faq-search-input {
        flex: 0 0 auto;
        width: 100%;
    }

    .board-faq .faq-search-btn {
        flex: 0 0 auto;
        width: 100%;
    }

    .board-faq .faq-search-btn button {
        width: 100%;
    }

    .board-faq .faq-search-text {
        display: inline;
    }
}

/* ============================================
   초소형 모바일 (360px 이하)
   ============================================ */

@media all and (max-width: 360px) {
    .board-faq .faq-q-icon,
    .board-faq .faq-a-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }

    .board-faq .faq-subject {
        font-size: 12px;
    }

    .board-faq .faq-a-content {
        font-size: 11px;
    }

    .board-faq .faq-meta {
        padding-left: 40px;
        font-size: 10px;
    }
}

/* ============================================
   기존 basic 스킨 호환용 스타일 유지
   (다른 게시판에서 faq 스킨 사용 시 호환성)
   ============================================ */

/* 카테고리 */
.list-category .div-tab-box { margin-bottom:15px; }
.list-category .dropdown { margin-bottom:15px; }
.list-category .active a, .list-category .selected a { color:crimson; font-weight:bold !important; }

/* 목록 공통 */
.list-wrap { width:100%; }
.list-btn-box { margin-bottom: 15px; }
.list-btn-box a span { margin-left: 4px; }
.list-btn-box .sort a { color:crimson !important; font-weight:bold !important; }
.list-btn-box .dropdown-menu { font-size: 12px; }
.list-none { margin:0px 0px 15px; padding:80px 0px; }
.list-page { margin-bottom:15px; }
.list-page .pagination { margin:0; }

/* 아이콘 */
.list-wrap .wr-text { font-family:dotum; font-size:11px; letter-spacing:-1px; line-height:11px; font-weight:normal; }
.list-wrap .wr-icon { display:inline-block; padding:0px; margin:0px; overflow:hidden; vertical-align:middle; background-repeat: no-repeat; background-position: left top; }
.list-wrap .wr-notice { width:37px; height:19px; background-image: url('./img/icon_notice.gif'); }
.list-wrap .wr-new { width:12px; height:12px; background-image: url('./img/icon_new.gif'); }
.list-wrap .wr-secret { width:12px; height:12px; background-image: url('./img/icon_secret.gif'); }
.list-wrap .wr-hot { width:12px; height:12px; background-image: url('./img/icon_hot.gif'); }

/* 내용 공통 */
.view-wrap { width:100%; overflow:hidden; }
.view-wrap .img-photo i { background: rgb(245, 245, 245); padding: 16px; border-radius: 50%; width: 80px; height: 80px; text-align: center; color: rgb(143, 143, 143); font-size: 40px; display: inline-block; }
.view-wrap .img-photo img { border-radius: 50%; width: 80px !important; height: 80px !important; display:inline-block; }
.view-wrap .img-resize img { max-width:100%; height:auto; }
.view-wrap h1 { font-size: 22px; font-weight:bold; margin:0px; line-height:50px; display:block; text-overflow:ellipsis; white-space:nowrap; word-wrap:normal; overflow:hidden; margin:0px; padding:0px 10px; color: rgb(59, 62, 67); letter-spacing:-1px; }
.view-wrap h1 .photo { border-radius: 50%; width: 50px; height: 50px; margin-bottom:10px; margin-right:10px; }
.view-wrap .no-attach { border-bottom:0px; }

.view-btn { margin:0px 0px 30px; }
.view-btn i { margin-right:2px; }

.view-head { border-left:0px; border-right:0px; }
.view-head .sp { display:inline-block; width:20px; text-align:center; font-size:11px; color:#888; }
.view-head .list-group-item { padding:5px 15px; border-style:dotted; }
.view-tag { margin:10px 0px; padding:0px; color:#888; }
.view-tag a { color:#888; }
.view-tag a:hover { color:crimson; }
.view-cnt { margin-top:4px; }
.view-img img { display:block; max-width:100%; margin:0 auto 15px; border:0; height:auto; }
.view-content { padding:0px 15px 20px }
.view-mobile .view-content { padding:0px 0px 20px; }
.view-content img { width:auto; height:auto; max-width:100%; }
.view-content p { padding:0; margin:0; line-height:22px; }
.view-good-box { text-align:center; }
.view-good-box span { margin:15px 6px; width:80px; height:80px; display:inline-block; }
.view-good-box a { background: rgb(245, 245, 245); padding-top:14px; border-radius: 50%; width: 80px; height: 80px; text-align: center; color: rgb(51, 51, 51); font-size: 22px; line-height:26px; display: inline-block; }
.view-good-box .view-good a:hover { background: rgb(223, 17, 25); color: rgb(255, 255, 255); }
.view-good-box .view-nogood a:hover { background: rgb(0, 0, 0); color: rgb(255, 255, 255); }
.view-author .auth-photo { width:160px; padding-right:15px; }
.view-comment { color: rgb(51, 51, 51); font-family: "Roboto", sans-serif; margin: 0px 0px 10px; padding: 0px 0px 5px; text-transform: capitalize; overflow: hidden; font-size: 20px; font-weight: 500; border-bottom-color: rgb(51, 51, 51); border-bottom-width: 1px; border-bottom-style: solid; display: inline-block; position: relative; }

#bo_v_sns {margin:4px 0 15px;padding:0;list-style:none;zoom:1}
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;margin:0 5px 0 0}

/* 댓글 */
.comment-media { }
.comment-media .photo i { background: rgb(245, 245, 245); padding: 15px; border-radius: 50%; width: 64px; height: 64px; text-align: center; color: rgb(143, 143, 143); font-size: 30px; display: inline-block; }
.comment-media .photo img { border-radius: 50%; width: 64px !important; height: 64px !important; display:inline-block; }
.view-mobile .comment-media .photo i { padding: 10px; width: 54px; height: 54px; }
.view-mobile .comment-media .photo img { width: 54px !important; height: 54px !important; }

.comment-media .media { border-top:1px solid #eee; margin:7px 0px; padding:7px 0px 0px; }
.comment-media :first-child.media { border-top:0px; margin-top:0px; padding-top:0px; }
.comment-media h5 { margin:2px 0px; line-height: 22px; }
.comment-media .media .media-body { padding-left:0px; }
.comment-media .media .media-info { margin-left:10px; }
.comment-media .media .media-content {	margin-top:8px; }
.comment-media .media .media-btn {	margin-left:4px; }
.comment-media .cmt-good-btn { text-align:right; padding-right:1px; }
.comment-media .cmt-good, .comment-media .cmt-nogood { display:inline-block; width:74px; height:20px; margin-top:10px; padding-right:10px; margin-right:-1px; font:bold 11px verdana; text-align:right; letter-spacing:-1px; line-height:19px; cursor:pointer; }
.comment-media .cmt-good { background: url('./img/cmt_good.gif') no-repeat left center; color:#f4695b; }
.comment-media .cmt-nogood { background: url('./img/cmt_nogood.gif') no-repeat left center; color:#888; }

#bo_vc_opt ol {	margin:0;padding:0;list-style:none;zoom:1; }
#bo_vc_opt ol:after { display:block;visibility:hidden;clear:both;content:""; }
#bo_vc_opt ol li { float:left;margin:0; }
#bo_vc_send_sns ul { margin:0;padding:0;list-style:none;zoom:1; }
#bo_vc_send_sns ul:after { display:block;visibility:hidden;clear:both;content:""; }
#bo_vc_send_sns ul li {	float:left;margin:0 0 0 20px; }
#bo_vc_send_sns input {	margin:0 0 0 5px; }

/* 쓰기 공통 */
.write-wrap { width:100%; overflow:hidden; }
.write-wrap h2 { padding:0px; margin:0px; font-size:14px; font-weight:bold; }
.write-wrap label { font-weight:bold; }
.write-wrap .write-content { height: 300px; }
.write-wrap .write-file { border:0;box-shadow:none; }
.write-wrap .write-btn { margin:15px 0px 25px; text-align:center; }
.write-wrap .delete-file { margin:0px; padding:0px 10px; font-weight:normal; }
.write-wrap .delete-file label { font-weight: normal; }
.write-wrap .sp-label { font-weight:normal; margin-right:10px; }
.write-wrap .sp-label input[type="checkbox"], .write-wrap .sp-label input[type="radio"] { margin-top:0px; }

#autosave_pop div { text-align:right; }
#autosave_pop button { margin:0; margin-left:10px; padding:0; border:0; background:transparent; color:#888; }
#autosave_pop ul { margin:0; padding:0; padding-left:15px; list-style:disc; }
#autosave_pop li { padding:2px 5px;  }
#autosave_pop li:after { display:block; visibility:hidden; clear:both; content:""; }
#autosave_pop a { display:block; float:left; }
#autosave_pop span { display:block;; float:right; }

.img img { display:block; max-width:100%; margin:0 auto 15px; border:0; height:auto; }
.content { line-height:180%; }
.content img { width:auto; height:auto; max-width:100%; }
.content p { padding:0; margin:0; line-height:180%; }
.none { padding:50px 0px; text-align:center; color:#888; }

/* ===============================================
   2026-02-05 수정: SmartEditor2 모바일 반응형 수정
   SmartEditor2는 고정 너비를 사용하여 모바일에서 화면이 확대됨
   =============================================== */

/* 에디터 컨테이너 반응형 */
@media screen and (max-width: 768px) {
    /* SmartEditor2 wrapper */
    #bo_w .write_div,
    #bo_w #wr_content,
    #bo_w .tx-switchbutton-wrap,
    #bo_w .tx-editor-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 에디터 iframe 반응형 */
    #bo_w iframe,
    #bo_w .se2_wrap iframe,
    #bo_w .se2_inputarea iframe,
    #bo_w #ir1 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* SmartEditor2 툴바 */
    #bo_w .se2_tool,
    #bo_w .husky_seditor_ui_basic_container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* 에디터 본문 영역 */
    #bo_w .se2_input_wysiwyg,
    #bo_w .se2_input_htmlsrc,
    #bo_w .se2_inputarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* SmartEditor 외곽 테이블 */
    #bo_w table.se2_wrap,
    #bo_w table.husky_seditor_ui_basic_wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 제목 입력창 */
    #bo_w #wr_subject {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 폼 전체 overflow 방지 */
    #bo_w,
    #bo_w .form-horizontal,
    #bo_w .well,
    #bo_w .write_div {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* body viewport 고정 */
    body.board-faq {
        overflow-x: hidden !important;
    }
}

/* 320px 이하 극소형 화면 */
@media screen and (max-width: 320px) {
    #bo_w .se2_tool {
        font-size: 11px;
    }
    #bo_w .se2_tool button {
        padding: 2px 4px !important;
    }
}

/* ===============================================
   2026-02-05 수정: FAQ 글쓰기 폼 레이블 좌측 정렬
   Bootstrap form-horizontal의 우측 정렬 오버라이드
   =============================================== */

/* 글쓰기 폼 레이블 좌측 정렬 */
#bo_w.write-wrap .form-horizontal .control-label {
    text-align: left !important;
    padding-left: 15px !important;
}

/* 레이블 너비 조정 - PC에서 적절한 너비 유지 */
@media (min-width: 768px) {
    #bo_w.write-wrap .form-horizontal .col-sm-2.control-label {
        width: 120px;
        flex: 0 0 120px;
        max-width: 120px;
        padding-right: 10px;
    }
    
    /* 입력 필드 너비 조정 */
    #bo_w.write-wrap .form-horizontal .col-sm-3 {
        width: calc(100% - 120px);
        max-width: 300px;
    }
    
    #bo_w.write-wrap .form-horizontal .col-sm-6 {
        width: calc(100% - 120px);
        max-width: 500px;
    }
    
    #bo_w.write-wrap .form-horizontal .col-sm-10 {
        width: calc(100% - 120px);
        max-width: calc(100% - 120px);
    }
    
    /* 에디터 영역은 전체 너비 */
    #bo_w.write-wrap .form-horizontal .col-sm-12 {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 각 form-group을 flex로 변환하여 정렬 개선 */
#bo_w.write-wrap .form-horizontal .form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
}

/* 레이블 기본 스타일 */
#bo_w.write-wrap .form-horizontal .form-group > label {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

/* 필드 영역 */
#bo_w.write-wrap .form-horizontal .form-group > div[class^="col-"] {
    padding-left: 10px;
    padding-right: 15px;
}

/* 체크박스/라디오 인라인 정렬 */
#bo_w.write-wrap .item-label .checkbox-inline,
#bo_w.write-wrap .item-label .radio-inline {
    padding-left: 20px;
    margin-right: 15px;
}

/* 제목 입력 영역 (input-group) */
#bo_w.write-wrap .form-group .input-group {
    width: 100%;
}

/* 옵션 영역 레이블이 없는 경우 */
#bo_w.write-wrap .form-group .col-sm-offset-2 {
    margin-left: 120px;
}

/* 첨부파일 영역 */
#bo_w.write-wrap #variableFiles {
    margin-left: 0;
}

/* 버튼 영역 중앙 정렬 */
#bo_w.write-wrap .write-btn {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* cheditor5 래퍼 스타일 */
#bo_w.write-wrap .cheditor-wrapper {
    width: 100%;
    max-width: 100%;
}

/* 모바일에서 세로 레이아웃 */
@media (max-width: 767px) {
    #bo_w.write-wrap .form-horizontal .form-group {
        flex-direction: column;
    }
    
    #bo_w.write-wrap .form-horizontal .control-label {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        margin-bottom: 5px;
    }
    
    #bo_w.write-wrap .form-horizontal .form-group > div[class^="col-"] {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    #bo_w.write-wrap .form-group .col-sm-offset-2 {
        margin-left: 0;
    }
}

/* ===============================================
   2026-02-05 추가: CHEditor5 모바일 반응형 강화
   에디터 고정 너비로 인한 뷰포트 확대 문제 해결
   =============================================== */

/* 전체 뷰포트 오버플로우 방지 */
@media screen and (max-width: 768px) {
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    #bo_w.write-wrap {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* CHEditor5 래퍼 */
    #bo_w .cheditor-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
    }

    /* CHEditor5 에디터 본체 */
    #bo_w .cheditor-wrapper > div,
    #bo_w .cheditor-wrapper table,
    #bo_w .cheditor-wrapper iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* CHEditor5 툴바 - 스크롤 허용 */
    #bo_w .cheditor-wrapper .che-toolbar,
    #bo_w .cheditor-wrapper [class*="toolbar"],
    #bo_w .cheditor-wrapper > div > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* 모든 테이블 요소 반응형 */

    /* 제목 입력 그룹 */
    #bo_w .input-group {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    #bo_w .input-group > input {
        flex: 1 1 100% !important;
        margin-bottom: 5px !important;
    }

    #bo_w .input-group .input-group-btn {
        flex: 1 1 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
}

/* 2026-02-05 수정: CHEditor5 테이블 레이아웃 복원 */
#bo_w .cheditor-wrapper table,
.cheditor-wrapper table {
    width: auto !important;
    max-width: none !important;
    table-layout: auto !important;
}

/* =============================================
   2026-02-05 수정: CHEditor5 스타일 강력 적용
   에디터 테이블 깨짐 방지
   ============================================= */
#bo_w .cheditor-wrapper,
.cheditor-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

#bo_w .cheditor-wrapper table,
.cheditor-wrapper table,
.cheditor-wrapper table tbody,
.cheditor-wrapper table tr,
.cheditor-wrapper table td {
    display: revert !important;
    width: auto !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: separate !important;
}

.cheditor-wrapper table td {
    display: table-cell !important;
    vertical-align: middle !important;
}

/* 툴바 아이콘 인라인 배치 */
.cheditor-wrapper table td img,
.cheditor-wrapper table td button,
.cheditor-wrapper table td a {
    display: inline-block !important;
}

/* 2026-02-05 추가: 관리자 삭제용 체크박스 스타일 */
.board-faq .faq-item {
    position: relative;
}
.board-faq .faq-checkbox {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.board-faq .faq-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}
.board-faq .faq-checkbox label {
    display: none;
}
/* 체크박스 있을 때 FAQ 아이템에 여백 추가 */
.board-faq .faq-accordion {
    margin-left: 0;
    transition: margin-left 0.2s ease;
}
.board-faq .faq-accordion.has-checkbox {
    margin-left: 35px;
}
/* 모바일에서는 체크박스 위치 조정 */
@media (max-width: 767px) {
    .board-faq .faq-checkbox {
        left: -25px;
    }
    .board-faq .faq-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    .board-faq .faq-accordion.has-checkbox {
        margin-left: 28px;
    }
}

/* 2026-02-05 추가: FAQ 글쓰기 폼 Q/A 라벨 스타일 */
.board-faq .faq-label-q,
.board-faq .faq-label-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}
.board-faq .faq-label-q {
    background: #3498db;
    color: #fff;
}
.board-faq .faq-label-a {
    background: #e74c3c;
    color: #fff;
}
.board-faq .faq-answer-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}
.board-faq .faq-answer-label {
    text-align: left !important;
    padding-top: 10px !important;
}
/* 모바일에서 라벨 조정 */
@media (max-width: 767px) {
    .board-faq .faq-answer-label {
        text-align: center !important;
        margin-bottom: 10px;
    }
}

/* 2026-02-05 추가: FAQ 카테고리 영역 스타일 수정 */
/* PC: 우측 긴 선 제거 */
.board-faq .list-category .div-tab .nav-tabs {
    border-bottom: none !important;
}
.board-faq .list-category .div-tab {
    border: none !important;
}

/* 모바일: 카테고리 드롭다운 표시 */
@media (max-width: 767px) {
    .board-faq .list-category .dropdown {
        display: block !important;
        margin-bottom: 15px;
    }
    .board-faq .list-category .dropdown .btn {
        background: #f5f5f5;
        border: 1px solid #ddd;
        color: #333;
        font-size: 14px;
        padding: 10px 15px;
    }
    .board-faq .list-category .dropdown .btn:hover,
    .board-faq .list-category .dropdown .btn:focus {
        background: #e9e9e9;
    }
    .board-faq .list-category .dropdown-menu {
        width: 100%;
    }
    .board-faq .list-category .dropdown-menu li a {
        padding: 10px 15px;
    }
    .board-faq .list-category .dropdown-menu li.selected a {
        color: #e74c3c;
        font-weight: bold;
    }
}

/* 모바일 카테고리 - 강제 표시 (visible-xs 보완) */
@media (max-width: 991px) {
    .board-faq .list-category .hidden-xs {
        display: none !important;
    }
    .board-faq .list-category .visible-xs,
    .board-faq .list-category .dropdown.visible-xs {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
@media (min-width: 992px) {
    .board-faq .list-category .dropdown.visible-xs {
        display: none !important;
    }
}

/* 2026-02-05 추가: 모바일 카테고리 강제 표시 (최우선 적용) */
@media screen and (max-width: 991px) {
    .board-faq .list-category .dropdown.visible-xs {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 15px !important;
    }
    .board-faq .list-category > .div-tab,
    .board-faq .list-category > .div-tab.hidden-xs {
        display: none !important;
    }
}
@media screen and (max-width: 767px) {
    .board-faq .list-category .dropdown.visible-xs {
        display: block !important;
    }
    .board-faq aside.list-category .dropdown {
        display: block !important;
    }
}

/* 2026-02-05: 모바일 카테고리 - 최고 우선순위 */
section.board-faq aside.list-category div.dropdown.visible-xs {
    display: block !important;
}
.board-list.board-faq .list-category .dropdown.visible-xs,
body .board-faq .list-category .dropdown.visible-xs,
html body .board-faq .list-category .dropdown {
    display: block !important;
}
@media only screen and (max-width: 991px) {
    html body section.board-faq aside.list-category div.dropdown.visible-xs {
        display: block !important;
        position: relative !important;
        width: 100% !important;
    }
    html body section.board-faq aside.list-category div.div-tab.hidden-xs {
        display: none !important;
    }
}

/* 2026-02-05: FAQ 카테고리 새 스타일 */
.board-faq .faq-category-wrap {
    margin-bottom: 15px;
}

/* PC 탭 */
.board-faq .faq-category-pc {
    display: block;
}
.board-faq .faq-category-pc .faq-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}
.board-faq .faq-category-pc .faq-cat-tabs li {
    margin: 0;
}
.board-faq .faq-category-pc .faq-cat-tabs li a {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
}
.board-faq .faq-category-pc .faq-cat-tabs li a:hover {
    background: #e0e0e0;
}
.board-faq .faq-category-pc .faq-cat-tabs li.active a {
    background: #e74c3c;
    color: #fff;
}

/* 모바일 드롭다운 - 기본 숨김 */
.board-faq .faq-category-mobile {
    display: none;
}
.board-faq .faq-category-mobile .faq-cat-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

/* 모바일: 드롭다운 표시, 탭 숨김 */
@media screen and (max-width: 767px) {
    .board-faq .faq-category-pc {
        display: none !important;
    }
    .board-faq .faq-category-mobile {
        display: block !important;
    }
}

/* ============================================
   2026-02-06 추가: 관리자용 수정 버튼 스타일
   ============================================ */
.board-faq .faq-admin-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    margin-left: auto;
    background: #3498db;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.board-faq .faq-admin-edit:hover {
    background: #2980b9;
    color: #fff;
    text-decoration: none;
}

.board-faq .faq-admin-edit i {
    font-size: 11px;
}

/* 모바일에서 수정 버튼 스타일 조정 */
@media (max-width: 480px) {
    .board-faq .faq-admin-edit {
        padding: 3px 8px;
        font-size: 11px;
    }
}
