/* faq.css */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* FAQ 테이블 스타일 */
.faq-section {
    padding: 60px 0;
    background-color: #ffffff;
    margin-top: 100px;
}

.faq-table {
    margin-top: 12px;
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #6f6f6f;
    border-bottom: 2px solid #6f6f6f;
}

.faq-table th,
.faq-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

/* 상단 제목(헤더) 스타일 */
.faq-table th {
    background-color: transparent;
    /* 배경색 제거 */
    font-weight: bold;
    /* 글씨 굵게 */
    font-size: 1.1em;
    /* 글씨 약간 크게 */
}

.faq-table td a {
    color: #007bff;
    text-decoration: none;
}

.faq-table td a:hover {
    text-decoration: underline;
}

/* 페이저 스타일 */
.pager {
    margin-top: 20px;
    text-align: center;
}

.pager ul {
    list-style-type: none;
    padding: 0;
}

.pager li {
    display: inline;
    margin: 0 5px;
    cursor: pointer;
    color: #007bff;
}

.pager li:hover {
    text-decoration: underline;
}

/* 모달 전체 스타일 */
.modal-content {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 모달 헤더 스타일 */
.modal-header {
    background-color: #d3e4f6;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

/* 닫기 버튼 스타일 */
.modal-header .close {
    color: white;
    font-size: 24px;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

/* 모달 본문 스타일 */
.modal-body {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 제목 스타일 */
.faq-modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 10px;
    text-align: center;
}

/* 작성일 스타일 */
.faq-modal-date {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* 본문 스타일 */
.faq-modal-content {
    font-size: 16px;
    color: #222;
    white-space: pre-line;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    line-height: 1.8;
}

/* 모달 푸터 스타일 */
.modal-footer {
    background-color: #f1f1f1;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 닫기 버튼 스타일 */
.modal-footer .btn-secondary {
    background-color: #6c757d;
    border: none;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 5px;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
}

/* 모달 크기 조절 */
.modal-dialog {
    max-width: 800px;
    /* 기본보다 넓게 설정 (기본값: 500px) */
    width: 90%;
    /* 화면 너비의 90%까지 확장 */
}

/* 큰 화면(PC)에서는 최대 900px까지 */
@media (min-width: 992px) {
    .modal-dialog {
        max-width: 900px;
    }
}