.qna-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.qna-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.qna-table th,
.qna-table td {
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 12px;
    vertical-align: middle;
    text-align: center;
}

.qna-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #006400;
}

.qna-table td.title {
    text-align: left;
}

.qna-table td.title a.qna-link {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qna-table td.title a.qna-link:hover {
    text-decoration: underline;
}

.badge-answer,
.badge-pending {
    display: inline-block;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.badge-answer {
    background-color: #006400;
    color: white;
}

.badge-pending {
    background-color: #F44336;
    color: white;
}







/* 🔍 검색창 영역 */
.qna-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px 0 3%;
}

.qna-search-form-modern {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 720px;
    border: 2px solid #006400;
    border-radius: 100px;
    padding: 0.5% 1%;
    background-color: #fff;
}

.qna-search-input-modern {
    flex: 1;
    border: none;
    font-size: 14px;
    padding: 8px 12px;
    outline: none;
    background-color: transparent;
}

.qna-search-input-modern::placeholder {
    color: #ccc;
}

.qna-search-select-modern {
    border: none;
    font-size: 14px;
    margin-left: 10px;
    background: transparent;
    outline: none;
    color: #666;
    appearance: none;
}

.qna-search-button-modern {
    border: none;
    background: transparent;
    font-size: 20px;
    color: #006400;
    cursor: pointer;
    margin-left: 12px;
}

.qna-search-button-modern:hover {
    color: #004d00;
}

/* 📝 글쓰기 버튼 */
.qna-write-btn-wrapper {
    margin: 15px;
    text-align: right;
    width: 95%;
    max-width: 1200px;
}

.qna-write-btn {
    display: inline-block;
    background-color: #006400;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.qna-write-btn:hover {
    background-color: #004d00;
}

/* 페이지 숫자 css */
.qna-pagination {
    margin-top: 2rem;
    text-align: center;
}

.qna-pagination button {
    margin: 0 4px;
    padding: 8px 16px;
    font-size: 15px;
    border: 2px solid #006400;
    border-radius: 12px;
    background-color: #fff;
    color: #006400;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

/* 활성 버튼 */
.qna-pagination button.active {
    background-color: #006400;
    color: #fff;
    font-weight: bold;
}

/* 호버 효과 */
.qna-pagination button:hover:not(.active) {
    background-color: #e6f4ea;
}


/* ========== 반응형 ========= */

@media (max-width: 1200px) {
    .qna-container {
        padding: 1.5rem;
    }

    .qna-table {
        font-size: 15.5px;
    }

    .qna-pagination button {
        padding: 7px 14px;
        font-size: 14.5px;
    }

}

@media (max-width: 1024px) {
    .qna-container {
        padding: 1.2rem;
    }

    .qna-table {
        font-size: 15px;
    }

    .qna-pagination button {
        padding: 7px 12px;
        font-size: 14px;
    }
}

@media (max-width: 850px) {
    .qna-container {
        padding: 1rem;
    }

    .qna-table {
        font-size: 14.5px;
    }

    .qna-pagination button {
        padding: 6px 10px;
        font-size: 13.5px;
    }
}

@media (max-width: 768px) {
    .qna-container {
        padding: 0.8rem;
    }

    .qna-table {
        font-size: 14px;
    }

    .qna-table td.title a.qna-link {
        font-size: 13.5px;
    }

    .qna-table td.col-name {
        font-size: 12.5px;
        padding: 6px 4px;
    }

    .qna-pagination button {
        padding: 6px 9px;
        font-size: 13px;
    }
}

@media (max-width: 700px) {
    .qna-container {
        padding: 0.6rem;
    }

    .qna-table th,
    .qna-table td {
        padding: 8px 6px;
    }

    .qna-table {
        font-size: 13.5px;
    }

    .qna-pagination button {
        padding: 6px 8px;
        font-size: 12.5px;
    }
}

@media (max-width: 500px) {
    .qna-container {
        padding: 0.5rem;
    }

    .qna-table {
        font-size: 13px;
    }

    .qna-table td.title a.qna-link {
        font-size: 12.5px;
    }

    .qna-table td.col-name {
        font-size: 12px;
        padding: 5px 3px;
    }

    .qna-pagination button {
        padding: 5px 7px;
        font-size: 12px;
    }

}

@media (max-width: 400px) {
    .qna-table {
        font-size: 12.5px;
    }

    .qna-table td.title a.qna-link {
        font-size: 12px;
    }

    .qna-table th.col-date,
    .qna-table td.col-date {
        display: none;
    }

    .qna-pagination button {
        padding: 4px 6px;
        font-size: 11.5px;
    }
}

@media (max-width: 300px) {
    .qna-table {
        font-size: 12px;
    }

    .qna-table td.title a.qna-link {
        font-size: 11.5px;
    }

    .qna-pagination button {
        padding: 4px 5px;
        font-size: 11px;
    }

}