/* FAQ Custom CSS - Beautiful, Modern, matching the mockup exactly */

.faq-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 80px !important;
    padding: 0 20px 40px !important;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* Header Banner Section */
.faq-header-sec {
    width: 100%;
    background: url('/images/center/faq_banner.png') no-repeat center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    position: relative;
    border-bottom: none !important;
}

.faq-header-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-header-title-wrap {
    position: relative;
    display: inline-block;
    padding: 0 100px;
}

.faq-header-sec h1 {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.faq-header-sec p {
    font-size: 15px;
    color: #666;
    margin: 0 0 30px;
}

/* Floating speech bubble decorations */
.faq-deco-left, .faq-deco-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.faq-deco-left {
    left: -20px;
}

.faq-deco-right {
    right: -20px;
}

/* Search Box Container */
.faq-search-wrap {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.faq-search-wrap input[type="text"] {
    width: 100%;
    height: 54px;
    padding: 0 60px 0 24px;
    font-size: 15px;
    color: #333;
    border: 1px solid #e8e8e8;
    border-radius: 9999px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: all 0.2s ease-in-out;
}

.faq-search-wrap input[type="text"]::placeholder {
    color: #aaa;
}

.faq-search-wrap input[type="text"]:focus {
    border-color: #ff2028;
    box-shadow: 0 4px 20px rgba(255, 32, 40, 0.08);
}

.faq-search-wrap button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.faq-search-wrap button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Category Tabs */
.faq-tabs-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0 40px;
    flex-wrap: wrap;
}

.faq-tab-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #4e4e4e;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
}

.faq-tab-btn:hover {
    border-color: #b0b0b0;
    color: #222;
}

.faq-tab-btn.active {
    background: #ff2028;
    border-color: #ff2028;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 32, 40, 0.15);
}

/* FAQ Accordion List */
.faq-list-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.faq-item-card:hover {
    border-color: #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Accordion Question */
.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-q-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff2028;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-right: 16px;
    flex-shrink: 0;
}

.faq-question-text {
    flex-grow: 1;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    word-break: keep-all;
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: #666;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item-card.expanded .faq-toggle-icon {
    color: #ff2028;
}

/* Accordion Answer Content */
.faq-answer-panel {
    display: none;
    padding: 24px;
    background: #fbfbfb;
    border-top: 1px solid #f6f6f6;
}

.faq-answer-container {
    display: flex;
    align-items: flex-start;
}

.faq-a-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffebeb;
    color: #ff2028;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-right: 16px;
    flex-shrink: 0;
}

.faq-answer-content {
    flex-grow: 1;
    font-size: 14px;
    color: #4e4e4e;
    line-height: 1.6;
    word-break: break-all;
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Attachments */
.faq-attachments {
    margin-top: 14px;
    padding-left: 44px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-attachment-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.faq-attachment-link:hover {
    color: #ff2028;
}

.faq-attachment-link svg {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Feedback/Helpfulness */
.faq-feedback-sec {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 44px;
}

.faq-feedback-sec p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.faq-feedback-actions {
    display: flex;
    gap: 8px;
}

.faq-feedback-actions button.feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e1e1e1;
    background: #fff;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease-in-out;
}

.faq-feedback-actions button.feedback:hover {
    border-color: #b0b0b0;
    color: #222;
}

.faq-feedback-actions button.feedback.already {
    background-color: #ffebeb !important;
    border-color: #ffb3b3 !important;
    color: #ff2028 !important;
    box-shadow: 0 2px 8px rgba(255, 32, 40, 0.1);
}

.faq-feedback-actions button.feedback i,
.faq-feedback-actions button.feedback svg {
    font-size: 14px;
}

/* Bottom Inquiry Banner */
.faq-inquiry-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff9f9;
    border: 1px solid #ffe8e8;
    border-radius: 12px;
    padding: 24px 32px;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(255, 32, 40, 0.01);
}

.faq-inquiry-left {
    display: flex;
    align-items: center;
}

.faq-inquiry-icon {
    width: 44px;
    height: 44px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffebeb;
    border-radius: 50%;
    color: #ff2028;
    font-size: 20px;
    flex-shrink: 0;
}

.faq-inquiry-text h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.faq-inquiry-text p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.faq-inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    border: 1px solid #ff2028;
    background: #fff;
    color: #ff2028;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.faq-inquiry-btn:hover {
    background: #ff2028;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 32, 40, 0.15);
}

.faq-inquiry-btn svg {
    margin-left: 6px;
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Media Queries */
@media (max-width: 768px) {
    .faq-header-sec {
        padding: 40px 0 30px;
    }
    .faq-header-title-wrap {
        padding: 0 40px;
    }
    .faq-header-sec h1 {
        font-size: 28px;
    }
    .faq-deco-left, .faq-deco-right {
        width: 40px;
        height: 40px;
    }
    .faq-tab-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    .faq-inquiry-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .faq-inquiry-btn {
        width: 100%;
    }
}

/* ==========================================
   LEGACY OVERRIDES & SPACING FIXES
   ========================================== */

#bo_list {
    margin-bottom: 30px !important;
}

#bo_list ul {
    border-top: none !important;
    border-bottom: none !important;
    padding: 0;
    margin: 0;
}

.boListWrap {
    padding-bottom: 0 !important;
    padding-top: 10px !important;
}

.faq-tabs-container {
    margin: 32px 0 24px !important;
}

.faq-inquiry-banner {
    margin-top: 30px !important;
}
