.notice-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    table-layout: fixed;
}

.notice-table thead {
    background-color: #006400;
    color: white;
}

.notice-table th,
.notice-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    word-break: break-word;
    text-align: center;
}

/* 제목 칸 스타일 */
.notice-table td.title {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 열 너비 */
.notice-table th:nth-child(1),
.notice-table td:nth-child(1) {
    width: 10%;
    min-width: 20px;
}

.notice-table th:nth-child(2),
.notice-table td:nth-child(2) {
    width: 60%;
}

.notice-table th:nth-child(3),
.notice-table td:nth-child(3) {
    width: 15%;
    min-width: 30px;
}

.notice-table th:nth-child(4),
.notice-table td:nth-child(4) {
    width: 15%;
    min-width: 30px;
}

/* 배지 */
.notice-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    vertical-align: middle;
}

.badge-notice {
    background: #f44336;
    color: white;
}

.badge-recommend {
    background: #888;
    color: white;
}

/* 행 강조 */
.notice-table tr.notice-row {
    background-color: #fff5f5;
    font-weight: bold;
}

.notice-table tr.recommend-row {
    background-color: #f9f9f9;
}

/* 페이지네이션 */
.notice-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding: 10px 0;
    margin-top: 40px;
    text-align: center;
}

.notice-pagination button {
    background: white;
    border: 1px solid #006400;
    color: #006400;
    padding: 6px 10px;
    margin: 0 3px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
    min-width: 36px;
    transition: background-color 0.2s ease;
}

.notice-pagination button.active {
    background-color: #006400;
    color: white;
    font-weight: bold;
}

.notice-pagination button:hover {
    background-color: #00640010;
}

/* <<, >> 버튼은 모바일에서만 숨김 */
@media (max-width: 700px) {

    .notice-table th:nth-child(3),
    .notice-table td:nth-child(3),
    .notice-table th:nth-child(4),
    .notice-table td:nth-child(4) {
        display: none;
    }

    .notice-table th:nth-child(2),
    .notice-table td:nth-child(2) {
        width: auto;
    }

    .notice-table td.title {
        white-space: normal;
    }

    .notice-table td.title a {
        display: inline-block;
        max-width: 100%;
    }

    .notice-pagination button.first,
    .notice-pagination button.last {
        display: none;
    }
}

/* 반응형 폰트/패딩 조정 */
@media (max-width: 1200px) {
    .notice-container {
        padding: 0 16px;
    }
}

@media (max-width: 1024px) {

    .notice-table th,
    .notice-table td {
        font-size: 14px;
        padding: 12px 10px;
    }
}

@media (max-width: 850px) {

    .notice-table th,
    .notice-table td {
        font-size: 13px;
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .notice-container {
        margin: 40px auto;
    }

    .notice-table th,
    .notice-table td {
        font-size: 13px;
        padding: 10px 6px;
    }
}

@media (max-width: 500px) {

    .notice-table th,
    .notice-table td {
        font-size: 12px;
        padding: 8px 5px;
    }

    .notice-pagination button {
        padding: 6px 8px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {

    .notice-table th:nth-child(1),
    .notice-table td:nth-child(1) {
        width: 15%;
    }

    .notice-pagination button {
        padding: 5px 6px;
        font-size: 11px;
    }
}

@media (max-width: 300px) {
    .notice-table td.title {
        font-size: 11px;
    }

    .notice-pagination button {
        padding: 4px 5px;
        font-size: 10px;
    }
}