/* FAQ Accordion Styles */
.accordion .card {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
}

.accordion .card-header {
    background-color: #f8f9fa;
    padding: 0;
    border-bottom: none;
}

.accordion .btn-link {
    width: 100%;
    text-decoration: none;
    color: #333;
    padding: 15px 20px;
    text-align: left;
    position: relative;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
    text-decoration: none;
    background-color: #f1f1f1;
}

.accordion .btn-link:not(.collapsed) {
    background-color: #e9ecef;
}

.accordion .btn-link::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    width: 20px;
    text-align: center;
}

.accordion .btn-link:not(.collapsed)::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-question {
    font-weight: 500;
    flex: 1;
    margin-right: 50px;
}

.faq-date {
    color: #666;
    font-size: 0.9em;
    margin-right: 30px;
    white-space: nowrap;
}

.faq-answer {
    padding: 15px 0;
    line-height: 1.6;
}

/* 아코디언 답변 영역 스크롤 스타일 */
.accordion .card-body {
    max-height: 400px;  /* 최대 높이 설정 */
    overflow-y: auto;   /* 세로 스크롤 자동 생성 */
    padding: 1rem;      /* 내부 여백 */
}

/* 스크롤바 스타일링 */
.accordion .card-body::-webkit-scrollbar {
    width: 8px;
}

.accordion .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.accordion .card-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.accordion .card-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.faq-meta {
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* TOAST UI Editor Viewer Styles */
.tui-editor-viewer {
    min-height: 100px;
    margin: 10px 0;
}

.tui-editor-viewer .tui-editor-contents {
    font-size: 14px;
    line-height: 1.6;
}

.tui-editor-viewer .tui-editor-contents p {
    margin-bottom: 1em;
}

.tui-editor-viewer .tui-editor-contents img {
    max-width: 100%;
    height: auto;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 30px;
}

.pagination .page-link {
    color: #fff;
    border: 1px solid #dee2e6;
    margin: 0 2px;
    background-color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* Accordion Animation */
.accordion .collapse {
    transition: all 0.3s ease-out;
}

.accordion .btn-link .d-flex {
    width: 100%;
    padding-right: 30px;
} 