/* 페이지 배경 및 레이아웃 설정 */
/*
body {
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
}
*/
.sub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 80px;
}

/* 페이지 제목 */
.sub-container .sub-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    position: relative;
}

.sub-container .sub-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* 게시판 카드 */
.notice-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

/* 게시판 테이블 */
.notice-table {
    width: 100%;
    border-collapse: collapse;
}

.notice-table th, .notice-table td {
    padding: 18px 15px;
    text-align: center;
}

.notice-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.notice-table th {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.notice-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}
.notice-table tbody tr:last-child {
    border-bottom: none;
}
.notice-table tbody tr:hover {
    background-color: #f8f9fa;
}

.notice-table td {
    font-size: 15px;
    color: #34495e;
}

.notice-table .notice-title-cell {
    text-align: left;
    cursor: pointer;
}

.notice-table .notice-title-link {
    color: #34495e;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.notice-table .notice-title-link:hover {
    color: #009393;
    text-decoration: none;
    font-weight: 500;
}

/* 페이지네이션 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}
.pagination-btn, .pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 5px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination-item:hover, .pagination-btn:not(:disabled):hover {
    background-color: #009393;
    color: #fff;
    border-color: #009393;
}
.pagination-item.active {
    background-color: #009393;
    color: #fff;
    border-color: #009393;
    font-weight: 700;
}

/* =============================================
* ▼▼▼▼▼ 반응형 스타일 (이 부분이 수정되었습니다) ▼▼▼▼▼
* ============================================= */
@media (max-width: 768px) {
    .sub-container { padding: 20px 10px 40px; }
    .sub-title { font-size: 24px; }
    .notice-card { border-radius: 10px; }

    .notice-table thead {
        display: none; /* PC 테이블 헤더 숨김 */
    }
    .notice-table tr {
        display: block;
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 15px;
        padding: 10px 0;
    }
    .notice-table tr:last-of-type {
        margin-bottom: 0;
    }

    .notice-table td {
        display: block; /* 세로로 쌓이도록 block으로 변경 */
        text-align: left; /* 전체 텍스트 왼쪽 정렬 */
        padding: 8px 15px;
        border-bottom: none;
    }
    
    /* 제목 필드 스타일 */
    .notice-table .notice-title-cell {
        font-size: 16px;
        font-weight: 600;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* 날짜 필드 스타일 */
    .notice-table .notice-date-cell {
        font-size: 14px;
        color: #6c757d;
    }

    .notice-table .pc-only {
        display: none; /* PC에서만 보이는 필드 숨김 */
    }
}