@charset "utf-8";

/* ==========================================================================
   하이마켓 프리미엄 FAQ 리스타일링 (style.css)
   ========================================================================== */

/* 1. 카테고리 탭 디자인 개편 (원목 감성 크림 베이지 둥근 카드) */
#bo_cate {
    margin-bottom: 30px;
    text-align: center;
}
#bo_cate h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
#bo_cate ul {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
#bo_cate li {
    display: inline-block;
    padding: 0;
}
#bo_cate a {
    display: block;
    line-height: 20px;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid #ebd9c2;
    color: #8c6239;
    background: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
#bo_cate a:hover {
    background: #fdfaf4;
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}
#bo_cate #bo_cate_on {
    background: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 700;
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 10px rgba(140, 98, 57, 0.2);
}

/* 2. FAQ 검색창 개편 (미니멀 크림 카드) */
#faq_sch {
    background: #fdfaf4;
    border: 1px solid #ebd9c2;
    padding: 25px;
    text-align: center;
    margin: 0 0 25px;
    border-radius: 12px;
}
#faq_sch .sch_tit {
    position: absolute;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    text-indent: -9999em;
    overflow: hidden;
}
#faq_sch .frm_input {
    border: 1px solid #ccc;
    width: 320px;
    height: 46px;
    padding: 0 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background-color: #ffffff;
}
#faq_sch .frm_input:focus {
    border-color: var(--color-primary);
    outline: none;
}
#faq_sch .btn_submit {
    padding: 0 20px;
    height: 46px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 5px;
}
#faq_sch .btn_submit:hover {
    background: var(--color-primary-light);
}

/* 3. FAQ 아코디언 목록 개편 (세련된 입체형 리스트) */
#faq_wrap {
    margin: 10px 0 35px;
}
#faq_wrap h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
.faq_admin {
    text-align: right;
    margin-top: 10px;
}
#faq_wrap ol {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
#faq_wrap li {
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
    position: relative;
    transition: background-color 0.2s;
}
#faq_wrap li:last-child {
    border-bottom: none;
}
#faq_wrap li h3 {
    min-height: 54px;
    line-height: 24px;
    padding: 15px 60px 15px 50px;
    position: relative;
    margin: 0;
    cursor: pointer;
}
#faq_wrap li h3 a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
#faq_wrap li h3 a:hover {
    color: var(--color-primary-light);
}
#faq_wrap li h3 .tit_btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 32px;
    height: 32px;
    background: none;
    color: #8c6239;
    font-size: 1.1em;
    cursor: pointer;
}
#faq_wrap li h3 .tit_bg {
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5em;
    font-family: 'Inter', sans-serif;
}
#faq_wrap li h3.faq_li_open {
    background-color: #fdfaf4;
}
#faq_wrap li h3.faq_li_open a {
    color: var(--color-primary);
    font-weight: 700;
}

/* 4. 답변 영역 개편 */
#faq_con .con_inner {
    display: none;
    padding: 20px 20px 25px 50px;
    background-color: #fafafa;
    border-top: 1px dashed #ebd9c2;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    position: relative;
}
#faq_con .con_inner .tit_bg {
    display: none; /* Q와 매끄럽게 흐르도록 비활성화 혹은 인라인으로 조율 */
}
#faq_con .con_inner .closer_btn {
    position: absolute;
    right: 15px;
    top: 15px;
    border: 0;
    width: 30px;
    height: 30px;
    background: none;
    color: var(--color-primary-light);
    font-size: 1.1em;
    cursor: pointer;
}
