@charset "utf-8";

/* FAQ 본문은 공통 ma-page-title 부품과 MA FAQ 구조를 사용합니다. */

.ma_faq {
    width: 1000px;
    max-width: calc(100% - 36px);
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.ma_faq h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.ma_faq .ma_faq_sub_tit {
    margin: 20px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 130%;
    text-align: center;
}

.ma_faq_admin {
    display: flex;
    justify-content: flex-end;
    height: 0;
    margin: 0 auto;
    position: relative;
    top: -10px;
    z-index: 2;
}

.ma_faq_admin .fl_btns {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #09244b;
    font-size: 16px;
    text-align: center;
}

.ma_faq_admin .fl_btns span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ma_faq_admin .fl_btns:hover {
    border-color: #aa20ff;
}

.ma_faq .faq_ser_wrap {
    width: 400px;
    margin: 30px auto 0;
    position: relative;
}

.ma_faq .faq_ser_wrap input {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    padding: 0 60px 0 30px;
    border: 1px solid #09244b;
    border-radius: 0;
    color: #09244b;
    font-size: 16px;
}

.ma_faq .faq_ser_wrap button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.ma_faq .faq_ser_wrap button svg {
    display: block;
}

.ma_faq #bo_cate {
    display: flex;
    margin: 30px 0 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ma_faq #bo_cate::-webkit-scrollbar {
    height: 3px;
}

.ma_faq #bo_cate::-webkit-scrollbar-thumb {
    background: #ddd;
}

.ma_faq #bo_cate ul {
    display: flex;
    justify-content: center;
    min-width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    list-style: none;
    white-space: nowrap;
}

.ma_faq #bo_cate li {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.ma_faq #bo_cate a {
    display: inline-flex;
    min-height: 56px;
    box-sizing: border-box;
    align-items: center;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 16px;
    line-height: 1.4;
    position: relative;
    text-decoration: none;
}

.ma_faq #bo_cate li:first-child a {
    padding-left: 16px;
    padding-right: 16px;
}

.ma_faq #bo_cate a:hover,
.ma_faq #bo_cate #bo_cate_on {
    border: 0;
    background: transparent;
    color: #09244b;
    font-weight: 600;
    box-shadow: none;
}

.ma_faq #bo_cate #bo_cate_on:after {
    content: "";
    display: block;
    height: 2px;
    background: #09244b;
    position: absolute;
    right: 20px;
    bottom: 0;
    left: 0;
}

.ma_faq #faq_wrap {
    margin: 0 0 30px;
}

.ma_faq #faq_wrap h2,
.ma_faq #faq_con > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ma_faq #faq_wrap ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ma_faq #faq_wrap li {
    border-bottom: 1px solid #ececec;
    background: #fff;
    position: relative;
}

.ma_faq #faq_wrap li:first-child {
    border-top: 1px solid #ececec;
}

.ma_faq #faq_wrap li h3 {
    display: flex;
    min-height: 60px;
    box-sizing: border-box;
    align-items: center;
    margin: 0;
    padding: 20px 50px;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    position: relative;
}

.ma_faq #faq_wrap li h3 > a {
    display: flex;
    align-items: center;
    margin-top: 0;
    color: #222;
    line-height: 1.4;
    text-decoration: none;
}

.ma_faq #faq_wrap li h3.faq_li_open > a {
    color: #000;
    font-weight: 600;
}

.ma_faq #faq_wrap li h3 .tit_bg {
    display: inline-flex;
    width: 30px;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    font-size: 24px;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.ma_faq #faq_wrap li h3 .tit_btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #c5cdd8;
    font-size: 1.2em;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
}

.ma_faq #faq_con .con_inner {
    display: none;
    min-height: 30px;
    box-sizing: border-box;
    padding: 0 50px 20px;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
    position: relative;
}

.ma_faq #faq_con .con_inner img {
    max-width: 100%;
}

.ma_faq #faq_con .con_inner .closer_btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #aa20ff;
    font-size: 1.2em;
    position: absolute;
    top: 0;
    right: 15px;
    cursor: pointer;
}

.ma_faq .no_data {
    margin: 30px 0;
    padding: 60px 20px;
    color: #777;
    text-align: center;
}

/* FAQ 본문 뒤 간격도 원본 FAQ 페이지의 본문 종료 위치에 맞춥니다. */
body:has(.ma_faq) .ma-footer {
    margin-top: 24px;
}

@media all and (max-width: 1024px) {
    .ma_faq {
        width: auto;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
        padding: 0 20px;
    }

    .ma_faq .faq_ser_wrap {
        width: 100%;
    }

    .ma_faq #bo_cate a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 14px;
    }

    .ma_faq #bo_cate ul {
        justify-content: flex-start;
    }

    .ma_faq #bo_cate li:first-child a {
        padding-left: 0;
        padding-right: 0;
    }

    .ma_faq #faq_wrap li h3 {
        min-height: 56px;
        padding: 15px 45px 15px 50px;
        font-size: 16px;
    }

    .ma_faq #faq_con .con_inner {
        padding: 12px 45px 20px 15px;
    }
}
