@charset "utf-8";

/* FAQ Category Navigation */
#bo_cate {
    margin: 25px 0;
}
#bo_cate h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
#bo_cate ul {
    list-style: none;
    margin: 0;
    padding: 0;
    zoom: 1;
}
#bo_cate ul:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
#bo_cate li {
    display: inline-block;
    padding: 2px;
}
#bo_cate a {
    display: block;
    line-height: 28px;
    padding: 5px 18px;
    border-radius: 30px;
    border: 1px solid #d6e9ff;
    color: #6794d3;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {
    text-decoration: none;
    background: #1f3d68;
    color: #fff;
    border-color: #1f3d68;
}
#bo_cate #bo_cate_on {
    z-index: 2;
    background: #1f3d68;
    color: #fff;
    font-weight: bold;
    border: 1px solid #1f3d68;
    box-shadow: 0 8px 18px rgba(31, 61, 104, 0.18);
}

/* FAQ Search Section */
#faq_sch {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 10px 0 30px;
}
#faq_sch form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}
#faq_sch .sch_tit {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-right: 5px;
}
#faq_sch .frm_input {
    border: 1px solid #cbd5e1;
    width: 100%;
    max-width: 300px;
    height: 42px;
    padding: 0 16px;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: all 0.2s ease;
}
#faq_sch .frm_input:focus {
    border-color: #1f3d68;
    box-shadow: 0 0 0 3px rgba(31, 61, 104, 0.12);
}
#faq_sch .btn_submit {
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1e293b;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
#faq_sch .btn_submit:hover {
    background: #334155;
}

/* FAQ Accordion List */
#faq_wrap {
    margin: 10px 0 30px;
}
#faq_wrap h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
#faq_wrap ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#faq_wrap li {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#faq_wrap li:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
#faq_wrap li h3 {
    margin: 0;
    min-height: 52px;
    line-height: 24px;
    padding: 16px 60px 16px 60px;
    position: relative;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    transition: background-color 0.2s;
}
#faq_wrap li h3:hover {
    background: #fbfcfe;
}
#faq_wrap li h3 a {
    color: #1e293b;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
#faq_wrap li h3:hover a {
    color: #1f3d68;
}
#faq_wrap li h3.faq_li_open {
    border-bottom: 1px solid #f1f5f9;
}
#faq_wrap li h3.faq_li_open a {
    color: #1f3d68;
}

/* Q & A Badges */
#faq_wrap li h3 .tit_bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1f3d68;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    font-family: "Outfit", sans-serif;
    text-align: center;
    line-height: 1;
}
#faq_con .con_inner {
    display: none;
    padding: 20px 24px 20px 60px;
    background: #f8fafc;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    border-top: 1px solid #f1f5f9;
}
#faq_con .con_inner p {
    margin: 0 0 10px;
}
#faq_con .con_inner p:last-child {
    margin-bottom: 0;
}

/* Toggle chevron button */
#faq_wrap li h3 .tit_btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 30px;
    height: 30px;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#faq_wrap li h3.faq_li_open .tit_btn {
    transform: translateY(-50%) rotate(180deg);
    color: #1f3d68;
}

/* Hide closer button */
#faq_con .con_inner .closer_btn {
    display: none !important;
}

/* Empty State */
.empty_list {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 15px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
}
.empty_list a {
    display: inline-block;
    margin-top: 10px;
    color: #1f3d68;
    font-weight: 600;
    text-decoration: none;
}
.empty_list a:hover {
    text-decoration: underline;
}

.faq_admin {
    text-align: right;
    margin-top: 20px;
}
.faq_admin a.btn_admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 36px;
    padding: 0;
    line-height: 1;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    color: #64748b;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.faq_admin a.btn_admin i {
    display: block;
    margin: 0;
    line-height: 1;
}
.faq_admin a.btn_admin:hover {
    color: #1f3d68;
    border-color: #1f3d68;
    background: #f0f7ff;
}

@media (max-width: 1200px) {
    #bo_cate {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 20px 0;
        padding-bottom: 8px;
    }
    #bo_cate::-webkit-scrollbar {
        display: none;
    }
    #bo_cate ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        width: max-content;
        min-width: 100%;
    }
    #bo_cate li {
        flex: 0 0 auto;
        padding: 0;
    }
    #bo_cate a {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    #bo_cate a {
        font-size: 13px;
        padding: 5px 14px;
    }
}

@media (max-width: 768px) {
    #faq_hhtml,
    #faq_thtml,
    #faq_sch,
    #bo_cate,
    #faq_wrap,
    .pg_wrap,
    .faq_admin {
        margin-left: 10px !important;
        margin-right: 10px !important;
        box-sizing: border-box !important;
    }
    #faq_sch {
        margin-top: 14px !important;
        margin-bottom: 14px !important;
        padding: 14px !important;
        border-radius: 14px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        text-align: left !important;
    }
    #faq_sch form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 88px !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        align-items: stretch !important;
    }
    #faq_sch .sch_tit {
        display: none !important;
    }
    #faq_sch .frm_input {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 14px !important;
        border-radius: 10px !important;
        border: 1px solid #cbd5e1 !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }
    #faq_sch .btn_submit {
        width: 88px !important;
        height: 44px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        background: #1f3d68 !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
    #bo_cate {
        margin-top: 10px !important;
        margin-bottom: 18px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    #bo_cate::-webkit-scrollbar {
        display: none !important;
    }
    #bo_cate ul,
    #bo_cate_ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: max-content !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 0 0 2px !important;
        white-space: nowrap !important;
    }
    #bo_cate li {
        display: block !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
    }
    #bo_cate a {
        min-height: 40px !important;
        line-height: 38px !important;
        padding: 0 16px !important;
        border-radius: 999px !important;
        border: 1px solid #cbd5e1 !important;
        color: #1f3d68 !important;
        background: #fff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }
    #bo_cate #bo_cate_on {
        background: #1f3d68 !important;
        border-color: #1f3d68 !important;
        color: #fff !important;
        box-shadow: 0 8px 18px rgba(31,61,104,0.18) !important;
    }
    #faq_wrap {
        margin-top: 0 !important;
    }
    #faq_wrap ol {
        gap: 8px !important;
    }
    #faq_wrap li {
        border-radius: 12px !important;
    }
    #faq_wrap li h3 {
        min-height: 54px !important;
        padding: 15px 46px 15px 48px !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
        word-break: keep-all !important;
    }
    #faq_wrap li h3 .tit_bg {
        left: 14px !important;
        width: 24px !important;
        height: 24px !important;
    }
    #faq_wrap li h3 .tit_btn {
        right: 10px !important;
    }
    #faq_con .con_inner {
        padding: 16px 16px 16px 48px !important;
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        word-break: keep-all !important;
    }
    .empty_list {
        margin: 0 10px !important;
        padding: 52px 16px !important;
        border: 0 !important;
        background: transparent !important;
        color: #64748b !important;
        font-size: 14px !important;
    }
}
