/* FAQ 페이지 스타일 */

/* 서브 배너 */
.sub-faq {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color2) 100%);
}

/* FAQ 섹션 */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* 카테고리 필터 */
.faq-category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background-color: #fff;
    color: #64748b;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(37, 166, 155, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 166, 155, 0.15);
}

.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.category-btn:focus {
    background-color: rgba(37, 166, 155, 0.1);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 166, 155, 0.2);
}

/* FAQ 목록 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(37, 166, 155, 0.05);
}

.faq-item.active .faq-question {
    background-color: rgba(37, 166, 155, 0.08);
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-icon i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background-color: var(--primary-color2);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-content {
    padding: 0 28px 28px 28px;
    border-top: 1px solid #e2e8f0;
}

.faq-content p {
    margin: 20px 0 0 0;
    color: #64748b;
    line-height: 1.7;
    font-size: 14px;
}

/* 포커스 효과 */
.faq-question:focus {
    background-color: rgba(37, 166, 155, 0.1);
    outline: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-category-filter {
        margin-bottom: 40px;
        gap: 8px;
        padding: 0 20px;
    }

    .category-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .faq-list {
        padding: 0 20px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 15px;
        padding-right: 15px;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
    }

    .faq-icon i {
        font-size: 14px;
    }

    .faq-content {
        padding: 0 20px 20px 20px;
    }

    .faq-content p {
        font-size: 13px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 50px 0;
    }

    .faq-category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    .faq-category-filter::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 12px;
    }

    .faq-question {
        padding: 18px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .faq-content {
        padding: 0 18px 18px 18px;
    }
}