/* 게시판 목록 페이지 */
.board-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background-color: #fafbfc;
    transition: 0.2s;
}

.board-list-item:hover {
    border-color: #2f6fed;
    background-color: #f5f8ff;
    transform: translateY(-2px);
}

.board-list-text h4 {
    font-size: 18px;
    margin-bottom: 7px;
    color: #222;
}

.board-list-text p {
    font-size: 14px;
    color: #666;
}

.board-enter {
    min-width: 58px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #2f6fed;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.empty-box {
    padding: 40px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* 게시판 글 목록 페이지 */
.board-header-box {
    padding: 26px 28px;
}

.board-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.board-page-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #222;
}

.board-page-header p {
    font-size: 15px;
    color: #666;
}

.board-write-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 7px;
    background-color: #2f6fed;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.board-write-btn:hover {
    background-color: #1f5bd8;
}

/* 게시글 테이블 */
.post-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.post-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background-color: #fff;
}

.post-table thead {
    background-color: #f6f8fb;
}

.post-table th {
    height: 44px;
    border-bottom: 1px solid #e4e7ec;
    font-size: 14px;
    font-weight: 800;
    color: #444;
}

.post-table td {
    height: 48px;
    border-bottom: 1px solid #edf0f3;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.post-table tbody tr:last-child td {
    border-bottom: none;
}

.col-no {
    width: 80px;
}

.col-title {
    width: auto;
}

.col-writer {
    width: 140px;
}

.col-date {
    width: 140px;
}

.col-view {
    width: 80px;
}

.empty-posts {
    padding: 42px 0;
    color: #888;
    text-align: center;
}

.post-title-cell {
    text-align: left !important;
    padding-left: 16px;
}

.post-title-cell a:hover {
    color: #2f6fed;
    text-decoration: underline;
}

/* 하단 버튼 영역 */
.board-bottom-actions {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
}

/* 게시판 검색 */
.board-search-form {
    margin: 18px 0 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.board-search-form input {
    width: 280px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.board-search-form input:focus {
    border-color: #2f6fed;
}

.board-search-form button {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background-color: #2f6fed;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.board-search-form button:hover {
    background-color: #1f5bd8;
}

.search-reset-btn {
    height: 38px;
    padding: 0 12px;
    line-height: 38px;
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    background-color: #fff;
    color: #555;
    font-size: 14px;
}

.search-reset-btn:hover {
    background-color: #f2f4f7;
}

.search-type-select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    outline: none;
}

.search-type-select:focus {
    border-color: #2f6fed;
}

.search-result-info {
    margin: 4px 0 12px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

.search-result-info strong {
    color: #2f6fed;
}

.comment-count {
    margin-left: 5px;
    color: #2f6fed;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .board-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .board-enter {
        width: 100%;
        text-align: center;
    }

    .board-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .board-page-header h2 {
        font-size: 24px;
    }

    .board-write-btn {
        width: 100%;
        text-align: center;
    }

    .board-bottom-actions {
        flex-direction: column;
        gap: 10px;
    }

    .board-bottom-actions a {
        width: 100%;
        text-align: center;
    }

    .board-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .board-search-form input,
    .board-search-form button,
    .board-search-form .search-type-select,
    .board-search-form .search-reset-btn {
        width: 100%;
    }
}