/* 기본 리셋 및 안전장치 */
* {
    box-sizing: border-box;
}

/* 뉴스 게시판 영역 */
.news-board {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 10px;
}

/* 테이블 스타일 */
.news-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: center;
}

/* 테이블 헤더 */
.news-table thead th {
    background-color: #0072bb;
    color: #fff;
    padding: 12px 10px;
    min-width: 32px;
}

/* 테이블 본문 */
.news-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    word-break: break-word;
}

/* 마우스 호버 효과 */
.news-table tbody tr:hover {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease-in-out;
}

/* 제목 */
.news-title {
    text-align: left;
    padding-left: 20px;
    color: #333;
    font-weight: 500;
    display: block;
}

/* 날짜 */
.date {
    display: block;
    font-size: 14px;
    color: #888;
    text-align: left;
    margin-top: 4px;
}

/* 페이지네이션 */
.news-pagination {
    text-align: center;
    margin-top: 30px;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #ecf0f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.news-pagination .current {
    background-color: #2c3e50;
    color: #fff;
    font-weight: bold;
}

/* 더보기 버튼 */
.news-more {
    text-align: center;
    margin-top: 30px;
}

.more-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.more-link:hover {
    background-color: #1a242f;
}


/* -------------------- 모바일 최적화 -------------------- */
@media (max-width: 768px) {
    /* 번호 열 숨기기 */
    .news-table th.number,
    .news-table td.number {
        display: none;
    }

    /* 글자 크기 조정 */
    .news-title {
        font-size: 15px;
    }

    .date {
        font-size: 12px;
        margin-top: 2px;
    }

    .news-table td {
        font-size: 14px;
        padding: 10px 8px;
    }

    .news-pagination {
        margin-top: 20px;
    }
}
