.board-container {
    position: relative;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.board-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #1a1a1a;
    color: #fff;
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
}

.board-table th,
.board-table td {
    text-align: center;
    border: 1px solid #333333;
}

.board-table__header {
    font-weight: bold;
    font-size: 14px;
    background-color: #222222;
}

.board-table th {
    height: 35px;
}

.board-table tbody tr:hover {
    background-color: #0f0f0f;
}

.board-table tbody tr {
    height: 30px;
}

.board-table tr:nth-child(even) {
    background-color: #2a2a2a;
}

.board-table th:nth-child(1),
.board-table td:nth-child(1) {
    width: 10%;
}

.board-table th:nth-child(2),
.board-table td:nth-child(2) {
    width: 50%;
    text-align: left;
    padding-left: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    cursor: pointer;
}

.board-table th:nth-child(2) {
    text-align: center;
    cursor: default;
}

.board-table td:nth-child(2) a:visited {
    color: #7a7f9a;
}

.board-table td:nth-child(2) a {
    color: inherit;
    text-decoration: none;
}

.board-table td:nth-child(2) a:hover {
    text-decoration: underline;
}

.board-table th:nth-child(3),
.board-table td:nth-child(3) {
    width: 15%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.board-table th:nth-child(4),
.board-table td:nth-child(4) {
    width: 15%;
}

.board-table th:nth-child(5),
.board-table td:nth-child(5) {
    width: 10%;
}

.board-label {
    display: inline-block;
    padding: 4px 4px;
    margin-right: 6px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.label-공지 {
    background-color: #fb8c00;
    color: #000;
}

.label-질문 {
    background-color: #e53935;
    color: #fff;
}

.label-정보 {
    background-color: #1e88e5;
    color: #fff;
}

.label-이벤트 {
    background-color: #8e24aa;
    color: #fff;
}

.label-자유 {
    background-color: #616161;
    color: #fff;
}

.board-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination-controls button {
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    background-color: #2e2e2e;
    color: white;
    border: none;
    border-radius: 5px;
}

.pagination-controls button:hover {
    background-color: #616161;
}

.board-actions .btn-write {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #309933;
    color: #ffffff;
    padding: 5px 18px;
    width: 80px;
    font-size: 13px;
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.board-actions .btn-write:hover {
    background-color: #40c544;
}

@media (max-width: 1199px) and (min-width: 768px) {}

@media (max-width: 768px) {
    .board-container {
        position: relative;
        max-width: 550px;
        margin: 25px auto;
        padding: 15px;
    }

    .board-table {
        font-size: 12px;
    }

    .board-table__header {
        font-size: 12px;
    }

    .board-table th {
        height: 30px;
    }

    .board-table tbody tr {
        height: 26px;
    }

    .board-table th:nth-child(1),
    .board-table td:nth-child(1) {
        width: 10%;
    }

    .board-table th:nth-child(2),
    .board-table td:nth-child(2) {
        width: 50%;
        text-align: left;
        padding-left: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
        cursor: pointer;
    }

    .board-table th:nth-child(2) {
        text-align: center;
        cursor: default;
    }

    .board-table td:nth-child(2) a {
        color: inherit;
        text-decoration: none;
    }

    .board-table td:nth-child(2) a:hover {
        text-decoration: underline;
    }

    .board-table th:nth-child(3),
    .board-table td:nth-child(3) {
        width: 15%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }

    .board-table th:nth-child(4),
    .board-table td:nth-child(4) {
        width: 15%;
    }

    .board-table th:nth-child(5),
    .board-table td:nth-child(5) {
        width: 10%;
    }

    .board-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    .board-label {
        padding: 4px 3px;
        font-size: 10px;
    }

    .pagination-controls {
        display: flex;
        justify-content: center;
        gap: 5px;
    }

    .pagination-controls button {
        padding: 8px 16px;
        font-size: 12px;
        cursor: pointer;
        background-color: #2e2e2e;
        color: white;
        border: none;
        border-radius: 5px;
    }

    .pagination-controls button:hover {
        background-color: #616161;
    }

    .board-actions .btn-write {
        position: absolute;
        bottom: 20px;
        right: 20px;
        background-color: #309933;
        color: #ffffff;
        padding: 5px 18px;
        width: 80px;
        font-size: 13px;
        font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
        cursor: pointer;
        border: none;
        border-radius: 5px;
    }

    .board-actions .btn-write:hover {
        background-color: #40c544;
    }
}