/*
guide.html 스타일
- 자주하는 질문 (FAQ) 페이지
*/

/* 검색 바 */
.guide-search-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.guide-search-bar {
    display: flex;
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 3.5rem;
}

.guide-search-input {
    flex: 1;
    padding: 0 1rem;
    outline: none;
    font-size: 1rem;
    border: none;
}

@media (min-width: 768px) {
    .guide-search-input {
        padding: 0 1.5rem;
        font-size: 1.125rem;
    }
}

.guide-search-btn {
    background-color: #5c7cfa;
    color: white;
    padding: 0 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .guide-search-btn {
        padding: 0 2.5rem;
    }
}

.guide-search-btn:hover {
    background-color: #4a6cf7;
}

.guide-search-btn-text {
    display: none;
}

@media (min-width: 768px) {
    .guide-search-btn-text {
        display: inline;
    }
}

/* 1. 탭 버튼 및 반응형 스크롤 */
.tab-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    color: #6b7280;
}

.tab-container::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
}

.tab-btn.active {
    border-bottom: 3px solid #1f2937;
    color: #1f2937;
    font-weight: bold;
}

/* 2. 아코디언 애니메이션 및 고정 레이아웃 */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 3. 답변 영역: 크기 고정 및 반응형 애니메이션 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    background-color: #f3f8ff;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #374151;
}

/* 활성화 상태 (Active) */
.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

/* 4. 아이콘 스타일 */
.arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

/* 5. 페이지네이션 */
.guide-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    color: #9ca3af;
    font-weight: 700;
}

@media (min-width: 768px) {
    .guide-pagination {
        gap: 1.5rem;
    }
}

.guide-pagination span,
.guide-pagination i {
    cursor: pointer;
    transition: color 0.2s;
}

.guide-pagination span:hover,
.guide-pagination i:hover {
    color: #1f2937;
}

.guide-pagination .active {
    color: #1f2937;
    border-bottom: 2px solid #1f2937;
    padding: 0 0.25rem;
}


@media (max-width: 480px) {
    .guide-search-bar {
        height: 35px;
    }
    
}