@charset "utf-8";
/* =============================================
   FAQ Page CSS
   Location: /static/faq/css/faq.css
   
   Depends on: static_common.css
   - Uses: .back-home, .scroll-top-btn, .source-info
   
   Mobile-first design
   Media Query: Mobile (default) + PC (min-width: 768px)
   Color Theme: Purple (#667eea)
   ============================================= */

/* =============================================
   1. Page Header
   ============================================= */
.faq-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 16px;
    margin: 0 0 20px 0;
    text-align: center;
    border-radius: 10px;
}

.faq-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.faq-header .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* =============================================
   2. Tab Menu
   ============================================= */
.faq-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-tab-btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.faq-tab-btn i {
    font-size: 1rem;
}

.faq-tab-btn:hover {
    background: #f8f9fa;
    color: #667eea;
}

.faq-tab-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border-bottom-color: #667eea;
}

/* =============================================
   3. Tab Content
   ============================================= */
.faq-content {
    display: none;
}

.faq-content.active {
    display: block;
}

/* =============================================
   4. Accordion Button
   ============================================= */
.faq-accordion {
    background: linear-gradient(135deg, #f5f0ff, #f8f9fa);
    color: #333;
    cursor: pointer;
    padding: 16px;
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-left: 4px solid #667eea;
    text-align: left;
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion:first-of-type {
    border-radius: 8px 8px 0 0;
}

.faq-accordion:hover {
    background: linear-gradient(135deg, #ebe5ff, #f0f0ff);
}

.faq-accordion.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-left-color: #764ba2;
}

/* Plus/Minus Icon */
.faq-accordion::after {
    content: '\002B';
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-accordion.active::after {
    content: '\2212';
    color: white;
}

/* =============================================
   5. Accordion Panel
   ============================================= */
.faq-panel {
    padding: 0 16px;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-left: 4px solid #e0e0e0;
}

.faq-panel p {
    padding: 16px 0;
    line-height: 1.8;
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

.faq-panel ul {
    padding: 16px 0 16px 20px;
    margin: 0;
}

.faq-panel li {
    padding: 6px 0;
    line-height: 1.7;
    color: #555;
    font-size: 0.95rem;
}

.faq-panel li strong {
    color: #667eea;
}

/* =============================================
   6. Image Container (for Others tab)
   ============================================= */
.image-container {
    padding: 16px 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =============================================
   PC / Desktop (min-width: 768px)
   ============================================= */
@media (min-width: 768px) {

    /* Header */
    .faq-header {
        padding: 32px 24px;
        margin: 0 0 28px 0;
    }

    .faq-header h1 {
        font-size: 2rem;
    }

    .faq-header .subtitle {
        font-size: 1rem;
    }

    /* Tabs */
    .faq-tabs {
        margin-bottom: 28px;
    }

    .faq-tab-btn {
        padding: 16px 24px;
        font-size: 1rem;
        gap: 10px;
    }

    .faq-tab-btn i {
        font-size: 1.1rem;
    }

    /* Accordion */
    .faq-accordion {
        padding: 18px 20px;
        font-size: 1rem;
    }

    /* Panel */
    .faq-panel {
        padding: 0 20px;
    }

    .faq-panel p {
        padding: 20px 0;
        font-size: 1rem;
    }

    .faq-panel ul {
        padding: 20px 0 20px 24px;
    }

    .faq-panel li {
        padding: 8px 0;
        font-size: 1rem;
    }

    /* Image Container */
    .image-container {
        padding: 20px 0;
    }
}