@charset "utf-8";

/* 기본 */
* {
    box-sizing: border-box;
}

#faq_page,
#faq_page * {
    box-sizing: border-box;
}

#faq_page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 0px 30px;
    color: #111;
    font-family: 'Noto Sans KR', sans-serif;
}

.sound_only,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    clip: rect(0,0,0,0) !important;
}

/* 상단 이미지 */
.faq-top-image,
.faq-bottom-image {
    margin: 0 0 30px;
}

.faq-top-image img,
.faq-bottom-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* 상단 헤더 */
.faq-hero {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 56px;
}

.faq-hero-right {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
}

/* 검색 */
.faq-search-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.faq-search-form {
    position: relative;
    width: 100%;
}

.faq-search-input {
    width: 100%;
    height: 64px;
    padding: 0 72px 0 24px;
    border: 1px solid #dcdcdc;
    background: #fff;
    border-radius: 0;
    font-size: 18px;
    color: #111;
    outline: none;
}

.faq-search-input::placeholder {
    color: #8b8b8b;
}

.faq-search-input:focus {
    border-color: #222;
}

.faq-search-btn {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
}

.faq-search-btn svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* 본문 2단 */
.faq-layout {
    display: flex;
    align-items: flex-start;
    gap: 70px;
}

/* 좌측 카테고리 */
.faq-sidebar {
    flex: 0 0 170px;
    max-width: 170px;
}

.faq-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-category-list li + li {
    margin-top: 20px;
}

.faq-category-list a {
    display: inline-block;
    font-size: 18px;
    line-height: 1.5;
    color: #111;
    text-decoration: none;
    font-weight: 400;
    transition: color .2s ease, font-weight .2s ease;
}

.faq-category-list a:hover {
    color: #12377c;
}

.faq-category-list a.is-active {
    color: #0869f9;
    font-weight: 700;
}

/* 우측 FAQ */
.faq-content {
    flex: 1;
    min-width: 0;
}

.faq-accordion-wrap {
    width: 100%;
}

.faq-accordion-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: none;
}

.faq-item {
    border-bottom: 1px solid #d9d9d9;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 6px;
    background: #fff;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.faq-q-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.faq-plus {
    flex: 0 0 auto;
    display: inline-block;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: #0869f9;
    margin-top: -2px;
}

.faq-question {
    display: block;
    font-size: 19px;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.faq-q-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding-left: 10px;
}

.faq-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #bdbdbd;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    color: #666;
    background: #fff;
    white-space: nowrap;
}

.faq-arrow {
    width: 22px;
    height: 22px;
    color: #6a6a6a;
    transition: transform .25s ease;
}

.faq-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* 답변 */
.faq-a-wrap {
    display: none;
    padding: 0 6px 28px 66px;
}

.faq-a-inner {
    padding: 8px 0 0;
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    word-break: keep-all;
}

.faq-a-inner p:first-child {
    margin-top: 0;
}

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

.faq-item.is-open .faq-a-wrap {
    display: block;
}

.faq-item.is-open .faq-arrow {
    transform: rotate(180deg);
}

/* 빈 목록 */
.faq-empty {
    padding: 60px 20px;
    text-align: center;
    color: #777;
    font-size: 16px;
    line-height: 1.7;
}

.faq-empty a {
    color: #2e50ff;
    text-decoration: none;
}

/* 하단 html */
.faq-tail-html {
    margin-top: 30px;
}

/* 관리자 버튼 */
.faq-admin-btn-wrap {
    margin-top: 20px;
    text-align: right;
}

.faq-admin-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
}

/* 페이징 */
.pg_wrap {
    margin-top: 34px;
    text-align: center;
}

/* 반응형 */
@media (max-width: 1024px) {
    #faq_page {
        padding: 50px 0px 70px;
    }

    .faq-hero {
        margin-bottom: 40px;
    }

    .faq-hero-right,
    .faq-sidebar,
    .faq-content {
        max-width: none;
        width: 100%;
        flex: none;
    }

    .faq-layout {
        flex-direction: column;
        gap: 24px;
    }

    .faq-category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .faq-category-list li {
        margin: 0 !important;
    }

    .faq-category-list a {
        font-size: 16px;
    }

    .faq-q-btn {
        padding: 22px 0;
        gap: 18px;
    }

    .faq-plus {
        font-size: 34px;
    }

    .faq-question {
        font-size: 17px;
    }

    .faq-a-wrap {
        padding: 0 0 24px 52px;
    }
}

@media (max-width: 768px) {
    #faq_page {
        padding: 36px 0px 56px;
    }

    .faq-search-input {
        height: 54px;
        font-size: 15px;
        padding: 0 58px 0 16px;
    }

    .faq-search-btn {
        right: 14px;
        width: 26px;
        height: 26px;
    }

    .faq-layout {
        gap: 20px;
    }

    .faq-category-list {
        gap: 8px 14px;
    }

    .faq-category-list a {
        font-size: 15px;
    }

    .faq-q-btn {
        align-items: flex-start;
        padding: 18px 0;
    }

    .faq-q-left {
        gap: 12px;
    }

    .faq-plus {
        font-size: 28px;
        margin-top: -1px;
    }

    .faq-question {
        font-size: 15px;
        line-height: 1.55;
    }

    .faq-q-right {
        gap: 10px;
        padding-left: 0;
    }

    .faq-chip {
        min-height: 30px;
        padding: 0 12px;
        font-size: 12px;
    }

    .faq-arrow {
        width: 18px;
        height: 18px;
    }

    .faq-a-wrap {
        padding: 0 0 20px 40px;
    }

    .faq-a-inner {
        font-size: 14px;
        line-height: 1.8;
    }
}