/* ── 마이캠퍼밴엔젯 FAQ 스타일 ── */

.mcfaq-container {
    max-width: 980px;
    margin: 0 auto;
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

/* ── 검색창 ── */
.mcfaq-search-wrap {
    position: relative;
    margin-bottom: 24px;
}
.mcfaq-search-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 44px 14px 18px;
    font-size: 15px;
    border: 2px solid #d0d5dd;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s;
    background: #fff;
}
.mcfaq-search-wrap input:focus { border-color: #e8622a; }
.mcfaq-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #999;
    display: none;
}
.mcfaq-search-clear.visible { display: block; }

/* ── 2단 레이아웃 ── */
.mcfaq-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

/* ── 왼쪽 세로 사이드바 메뉴 ── */
.mcfaq-sidebar {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 80px;             /* 상단 고정 (헤더 높이에 맞게 조정 가능) */
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    padding: 8px 0;
}

.mcfaq-tab {
    width: 100%;
    display: block;
    padding: 12px 18px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    text-align: left;
    transition: all .18s;
    line-height: 1.4;
    white-space: normal;
    word-break: keep-all;
}
.mcfaq-tab:hover {
    background: #fff4f0;
    color: #e8622a;
    border-left-color: #f0b89a;
}
.mcfaq-tab.active {
    background: #fff4f0;
    color: #e8622a;
    border-left-color: #e8622a;
    font-weight: 700;
}

/* 첫 번째 탭(전체보기) 구분선 */
.mcfaq-tab:first-child {
    border-bottom: 1px solid #ececec;
    margin-bottom: 4px;
    padding-bottom: 14px;
    color: #333;
}
.mcfaq-tab:first-child.active {
    color: #e8622a;
}

/* ── 오른쪽 콘텐츠 영역 ── */
.mcfaq-content {
    flex: 1;
    min-width: 0;
}

/* ── 섹션 ── */
.mcfaq-section { margin-bottom: 36px; }
.mcfaq-section.hidden { display: none; }

.mcfaq-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0 0 10px 14px;
    border-left: 4px solid #e8622a;
    margin-bottom: 10px;
    margin-top: 0;
}

/* ── FAQ 아이템 ── */
.mcfaq-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}
.mcfaq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.mcfaq-item.search-hidden { display: none; }

/* ── 질문 버튼 ── */
.mcfaq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14.5px;
    font-weight: 600;
    color: #222;
    gap: 12px;
    transition: background .15s;
}
.mcfaq-question:hover { background: #fdf4f1; }
.mcfaq-question[aria-expanded="true"] { color: #e8622a; background: #fdf4f1; }

.mcfaq-q-text { flex: 1; line-height: 1.5; }

.mcfaq-icon {
    font-size: 22px;
    font-weight: 300;
    color: #e8622a;
    flex-shrink: 0;
    transition: transform .25s;
    line-height: 1;
}
.mcfaq-question[aria-expanded="true"] .mcfaq-icon {
    transform: rotate(45deg);
}

/* ── 답변 ── */
.mcfaq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.mcfaq-answer.open { max-height: 3000px; }

.mcfaq-answer-inner {
    padding: 4px 20px 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    border-top: 1px solid #f0f0f0;
}
.mcfaq-answer-inner p { margin: 10px 0; }
.mcfaq-answer-inner ul,
.mcfaq-answer-inner ol { padding-left: 20px; margin: 8px 0; }
.mcfaq-answer-inner li { margin-bottom: 4px; }
.mcfaq-answer-inner strong { color: #222; }
.mcfaq-answer-inner table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.mcfaq-answer-inner th,
.mcfaq-answer-inner td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }
.mcfaq-answer-inner th { background: #f5f5f5; font-weight: 700; }

/* ── 검색 결과 없음 ── */
.mcfaq-no-result {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 15px;
    background: #fafafa;
    border-radius: 12px;
}

/* ── 검색 하이라이트 ── */
.mcfaq-highlight {
    background: #fff3cd;
    border-radius: 3px;
    padding: 0 2px;
}

/* ── 반응형: 태블릿 이하에서 세로 탭을 가로로 전환 ── */
@media (max-width: 700px) {
    .mcfaq-layout {
        flex-direction: column;
        gap: 16px;
    }
    .mcfaq-sidebar {
        flex: none;
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
        gap: 6px;
        border-radius: 10px;
    }
    .mcfaq-tab {
        flex: 0 0 auto;
        width: auto;
        border: 2px solid #e0e0e0;
        border-left: 2px solid #e0e0e0 !important;
        border-radius: 50px;
        padding: 6px 14px;
        font-size: 12.5px;
    }
    .mcfaq-tab.active {
        background: #e8622a;
        border-color: #e8622a !important;
        color: #fff;
    }
    .mcfaq-tab:first-child {
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 0;
        padding-bottom: 6px;
    }
    .mcfaq-question { font-size: 14px; padding: 13px 14px; }
    .mcfaq-answer-inner { padding: 4px 14px 16px; }
    .mcfaq-section-title { font-size: 15px; }
}
