/* ========================================
   서브페이지 FAQ 섹션 — 2024 모던 디자인
   ======================================== */

.sub_faq {
    padding: 100px 20px 80px;
    background: linear-gradient(180deg, #f8f6f3 0%, #f1ede8 100%);
    position: relative;
    overflow: hidden;
}

.sub_faq::before {
    content: "FAQ";
    position: absolute;
    top: 40px;
    right: -20px;
    font-size: 200px;
    font-weight: 900;
    color: rgba(203, 157, 108, 0.04);
    letter-spacing: -8px;
    line-height: 1;
    pointer-events: none;
}

.sub_faq .main_faq_inner {
    max-width: 840px;
    margin: 0 auto;
}

.sub_faq .main_faq_inner > h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #cb9d6c;
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.sub_faq .main_faq_inner > h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #cb9d6c;
    margin: 0 auto 16px;
}

.sub_faq .main_faq_inner > p {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 48px;
    font-weight: 400;
}

/* FAQ 리스트 */
.sub_faq .main_faq_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 개별 아이템 */
.sub_faq .main_faq_list details {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sub_faq .main_faq_list details:hover {
    border-color: rgba(203, 157, 108, 0.3);
    box-shadow: 0 4px 20px rgba(203, 157, 108, 0.08);
    transform: translateY(-1px);
}

.sub_faq .main_faq_list details[open] {
    border-color: #cb9d6c;
    box-shadow: 0 4px 24px rgba(203, 157, 108, 0.12);
}

/* 질문 (summary) */
.sub_faq .main_faq_list summary {
    padding: 24px 60px 24px 28px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.5;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.sub_faq .main_faq_list summary::-webkit-details-marker {
    display: none;
}

.sub_faq .main_faq_list summary::marker {
    display: none;
    content: "";
}

/* 화살표 아이콘 */
.sub_faq .main_faq_list summary::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: translateY(-60%) rotate(45deg);
    transition: all 0.3s ease;
}

.sub_faq .main_faq_list details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: #cb9d6c;
}

.sub_faq .main_faq_list details[open] summary {
    color: #222;
    border-bottom: 1px solid #f0ece7;
}

/* Q 마커 */
.sub_faq .main_faq_list summary::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #cb9d6c, #b8894f);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    margin-right: 14px;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* 답변 */
.sub_faq .main_faq_list .faq_answer {
    padding: 20px 28px 28px 70px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #555;
    position: relative;
    animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub_faq .main_faq_list .faq_answer::before {
    content: "A";
    position: absolute;
    left: 28px;
    top: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f0ece7;
    color: #cb9d6c;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
}

.sub_faq .main_faq_list .faq_answer strong {
    color: #222;
    font-weight: 700;
    background: linear-gradient(to bottom, transparent 60%, rgba(203, 157, 108, 0.15) 60%);
}

/* ========================================
   모바일 반응형
   ======================================== */
@media screen and (max-width: 768px) {
    .sub_faq {
        padding: 60px 16px 50px;
    }

    .sub_faq::before {
        font-size: 100px;
        top: 20px;
        right: -10px;
    }

    .sub_faq .main_faq_inner > h2 {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .sub_faq .main_faq_inner > p {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .sub_faq .main_faq_list {
        gap: 10px;
    }

    .sub_faq .main_faq_list details {
        border-radius: 12px;
    }

    .sub_faq .main_faq_list summary {
        padding: 18px 48px 18px 20px;
        font-size: 15px;
    }

    .sub_faq .main_faq_list summary::before {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 6px;
        margin-right: 10px;
    }

    .sub_faq .main_faq_list summary::after {
        right: 20px;
        width: 8px;
        height: 8px;
    }

    .sub_faq .main_faq_list .faq_answer {
        padding: 16px 20px 22px 54px;
        font-size: 14.5px;
        line-height: 1.7;
    }

    .sub_faq .main_faq_list .faq_answer::before {
        left: 20px;
        top: 18px;
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 6px;
    }
}
