/* FAQ 페이지 전용 스타일 */
/* 검색 영역 스타일 */
.search-area {
    margin-bottom: 2rem;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 0 60px 0 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #3B82F6;
}

/* 카테고리 영역 스타일 */
.category-area {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow-x: visible;
    overflow-y: visible;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 15px;  /* 간격 */
}

.category-item {
    flex: 0 0 calc(33.333% - 10px);  /* 한 줄에 3개 (100% / 3) */
    margin-right: 0;
}

.category-link {
    display: flex;
    flex-direction: row;  /* column → row (가로 배치) */
    align-items: center;  /* 세로 중앙 정렬 */
    justify-content: flex-start;  /* 왼쪽 정렬 */
    text-decoration: none;
    color: #666;
    padding: 1.2rem;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    width: 100%;
    height: 50px;  /* 높이 조정 (선택사항) */
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.category-link i {
    margin-right: 12px;  /* 아이콘과 텍스트 사이 간격 */
    margin-bottom: 0;    /* 기존 하단 간격 제거 */
    font-size: 28px;     /* 아이콘 크기 */
    flex-shrink: 0;      /* 아이콘 크기 고정 */
}

.category-link span {
    font-weight: 500;
    text-align: left;  /* 왼쪽 정렬 */
    font-size: 14px;
}

.category-item.active .category-link {
    background-color: #333;
    color: white;
    border-color: #333;
}

.category-item:not(.active) .category-link:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}

/* 반응형 (선택사항) */
@media (max-width: 1024px) {
    .category-item {
        flex: 0 0 calc(50% - 7.5px);  /* 태블릿: 2개 */
    }
}

@media (max-width: 768px) {
    .category-item {
        flex: 0 0 calc(50% - 7.5px);  /* 모바일: 1개 */
    }
}

/* 정보 메시지 영역 */
.info-message {
    background-color: #f5f8ff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e8ff;
}

.info-message p {
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* FAQ 정보 영역 */
.faq-info-area {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.info-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #555;
}

.info-content p:last-child {
    margin-bottom: 0;
}

/* FAQ 아코디언 영역 */
.faq-list-area {
    margin-bottom: 2rem;
}

.faq-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    position: relative;
    padding: 1.5rem;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f0f5ff;
    color: #3B82F6;
    border-radius: 15px;
    font-weight: 500;
    margin-right: 1rem;
    white-space: nowrap;
}

.question-text {
    margin: 0;
    flex-grow: 1;
    font-weight: 500;
    color: #333;
    padding-right: 2rem;
}

.toggle-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: none;
    background-color: #f9fafb;
    border-top: 1px solid #eaeaea;
}

.faq-item.active .faq-answer {
    display: block;
}

.answer-content {
    padding: 1.5rem;
    color: #555;
}

.answer-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

.answer-content ol, .answer-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.answer-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 더보기 버튼 */
.more-btn-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.more-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 25px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.more-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* 관련 정보 영역 */
.related-info {
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #f9fafb;
    border: 1px solid #eaeaea;
}

.related-info h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.related-info p {
    margin: 0 0 0.5rem 0;
    color: #3B82F6;
    cursor: pointer;
    transition: color 0.3s;
}

.related-info p:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .faq-title {
    }

    .category-link {
        /* width: 100px; */
        /* height: 90px; */
    }

    .category-link i {
    }

    .category-link span {
    }

    .faq-question {
        padding: 1.2rem;
        flex-wrap: wrap;
    }

    .category-tag {
        margin-bottom: 0.5rem;
    }

    .question-text {
        width: 100%;
        margin-top: 0.5rem;
        padding-right: 1.5rem;
    }

    .toggle-icon {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .search-form input[type="text"] {
        height: 45px;
    }

    .category-link {
        /* width: 80px; */
        /* height: 80px; */
        padding: 0.8rem;
    }

    .category-link i {
    }

    .category-link span {
    }

    .faq-question {
        padding: 1rem;
    }

    .answer-content {
        padding: 1rem;
    }
}