/* board_faq.css — FAQ 페이지 전용 (다른 페이지 영향 없음) */

/* FAQ 상단 1줄 탭(FAQ / 공지사항) - 모바일 중앙 정렬 */
@media (max-width: 720px) {
    #board.page-faq .subcate {
        height: auto;
        line-height: normal;
    }

    #board.page-faq .subcate .wrap {
        position: static !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 12px;
        white-space: normal;
        width: 100%;
    }

    #board.page-faq .subcate .wrap a {
        margin: 0 !important;
    }
}

/* FAQ 카테고리(두 번째 탭줄) - 모바일 강제 중앙 정렬 + 줄바꿈 */
@media (max-width: 720px) {
    #board.page-faq ul.tabs.tab_btn_box__qna {
        height: auto !important;
        line-height: normal !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-content: center !important;
        gap: 8px 10px;
        margin-bottom: 30px;
        text-align: center !important;
        /* 안전장치 */
    }

    #board.page-faq ul.tabs.tab_btn_box__qna li {
        float: none !important;
        display: inline-block;
        height: 40px;
        line-height: 40px;
        padding: 0 14px;
        margin: 0 !important;
        border-radius: 4px;
    }

    #board.page-faq ul.tabs.tab_btn_box__qna li.active::after {
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg) !important;
        bottom: -8px;
    }
}