/* =========================
   NOTICE CONTAINER
========================= */

.notice-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    color: #222;
}

/* =========================
   TITLE
========================= */

.notice-title {
    margin-bottom: 25px;
}

.notice-title h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

.notice-title p {
    color: #777;
    font-size: 14px;
}

/* =========================
   TABLE WRAPPER
========================= */

.notice-table-wrapper {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* =========================
   TABLE
========================= */

.board {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* header */
.board th {
    background: #f7f7f7;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

/* body */
.board td {
    padding: 18px 16px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    vertical-align: top;

    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    color: #333;
}

/* =========================
   COLUMN STYLE
========================= */

.board td:nth-child(1),
.board th:nth-child(1) {
    width: 70px;
    text-align: center;
    color: #666;
}

.board td:nth-child(2),
.board th:nth-child(2) {
    width: 200px;
    text-align: left;
    font-weight: 600;
}

.board td:nth-child(3),
.board th:nth-child(3) {
    text-align: left;
}

.board td:nth-child(4),
.board th:nth-child(4) {
    width: 120px;
    text-align: center;
    white-space: nowrap;
    color: #777;
}

/* =========================
   HOVER UX
========================= */

.board tbody tr:hover {
    background: #fafafa;
    transition: 0.2s ease;
}

/* =========================
   MOBILE FIX (핵심 수정)
========================= */

@media (max-width: 768px) {

    .notice-container {
        margin: 30px auto;
        padding: 0 12px;
    }

    .notice-title h1 {
        font-size: 22px;
    }

    .notice-title p {
        font-size: 13px;
    }

    /* ❌ 가로 스크롤 제거 */
    .notice-table-wrapper {
        overflow: hidden;
    }

    .board {
        width: 100%;
        table-layout: fixed;
    }

    .board th,
    .board td {
        font-size: 12px;
        padding: 10px 8px;
    }

    /* 모바일에서 컬럼 압축 */
    .board td:nth-child(1),
    .board th:nth-child(1) {
        width: 45px;
    }

    .board td:nth-child(2),
    .board th:nth-child(2) {
        width: 90px;
    }

    .board td:nth-child(4),
    .board th:nth-child(4) {
        width: 80px;
    }

    /* 내용이 길어도 안전하게 줄바꿈 */
    .board td {
        word-break: break-word;
        white-space: normal;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .board th,
    .board td {
        font-size: 11px;
        padding: 8px 6px;
    }

    .board td:nth-child(2),
    .board th:nth-child(2) {
        width: 80px;
    }

    .board td:nth-child(4),
    .board th:nth-child(4) {
        width: 70px;
    }
}