/* ========================================
   기본 스타일
   ======================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: #ffffff;
    min-height: 100vh;
}


/* ======================ㅌ==================
   /* 공지사항 전용 스타일 
   ======================================== */

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 0px;
}

.notice-header {
    text-align: center;
    margin-bottom: 80px;
}

.notice-subtitle {
    font-size: 16px;
    color: #A6756A;
    letter-spacing: 8px;
    margin-bottom: 15px;
    font-weight: 400;
}

.notice-main-title {
    font-size: 42px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

/* 공지사항 테이블 */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.notice-table thead {
    border-top: 2px solid #333;
    border-bottom: 1px solid #ddd;
}

.notice-table thead th {
    padding: 18px 15px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #f8f9fa;
}

.notice-table thead th:first-child {
    width: 80px;
}

.notice-table thead th:nth-child(2) {
    width: auto;
    text-align: left;
    padding-left: 30px;
}

.notice-table thead th:nth-child(3) {
    width: 120px;
}

.notice-table thead th:nth-child(4) {
    width: 120px;
}

.notice-table thead th:last-child {
    width: 100px;
}

.notice-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s ease;
}

.notice-table tbody tr:hover {
    background: #f8faf9;
}

.notice-table tbody td {
    padding: 20px 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.notice-table tbody td:nth-child(2) {
    text-align: left;
    padding-left: 30px;
    color: #333;
    font-weight: 500;
}

.notice-table tbody td:nth-child(2) a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-table tbody td:nth-child(2) a:hover {
    color: #A6756A;
}

.lock-icon {
    font-size: 12px;
    color: #999;
}

.notice-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #999;
    color: white;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 500;
}

.notice-badge.completed {
    background: #A6756A;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #A6756A;
    color: white;
    border-color: #A6756A;
}

.pagination span.active {
    background: #A6756A;
    color: white;
    border-color: #A6756A;
    font-weight: 600;
}

.pagination .page-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
}

.pagination .page-arrow:hover {
    background: #f8f9fa;
}

/* 글쓰기 버튼 */
.write-btn-container {
    text-align: right;
    margin-top: 30px;
}

.write-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #A6756A;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.write-btn:hover {
    background: #85594F;
    transform: translateY(-2px);
}


/* ========================================
   반응형 - 모바일
   ======================================== */
@media (max-width: 768px) {
 
    /* ========================================
       공지사항 모바일 반응형
       ======================================== */
    .notice-container {
        padding: 80px 20px 0 !important;
        max-width: 1400px;
        margin: 0 auto;
    }

    .notice-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .notice-subtitle {
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 5px;
        color: #A6756A;
        margin-bottom: 12px
    }

    .notice-main-title {
        font-size: 26px;
        font-weight: bold;
        color: #000;
        margin-bottom: 40px;
    }

    /* 모바일 테이블을 카드 형태로 변경 */
    .notice-table {
        display: block;
    }

    .notice-table thead {
        display: none;
    }

    .notice-table tbody {
        display: block;
    }

    .notice-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }

    .notice-table tbody tr:hover {
        background: #f8faf9;
    }

    .notice-table tbody td {
        display: block;
        padding: 8px 0;
        text-align: left !important;
        border: none;
    }

    .notice-table tbody td:nth-child(2) {
        padding-left: 0;
    }

    /* 번호와 날짜를 한 줄에 표시 */
    .notice-table tbody td:first-child {
        display: inline-block;
        width: auto;
        font-weight: 600;
        color: #A6756A;
        padding-right: 10px;
    }

    .notice-table tbody td:first-child::before {
        content: 'No. ';
        font-weight: 400;
        color: #999;
    }

    .notice-table tbody td:nth-child(4) {
        display: inline-block;
        width: auto;
        color: #999;
        font-size: 13px;
    }

    /* 제목 영역 */
    .notice-table tbody td:nth-child(2) {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        margin: 10px 0;
        line-height: 1.5;
    }

    .notice-table tbody td:nth-child(2) a {
        display: block;
    }

    /* 작성자 숨김 (모바일에서는 불필요) */
    .notice-table tbody td:nth-child(3) {
        display: none;
    }

    /* 답변 상태 */
    .notice-table tbody td:last-child {
        text-align: right !important;
        margin-top: 10px;
    }

    .notice-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    /* 페이지네이션 모바일 */
    .pagination {
        gap: 5px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* 글쓰기 버튼 모바일 */
    .write-btn-container {
        margin-top: 20px;
        text-align: center;
    }

    .write-btn {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* ========================================
   반응형 - 작은 모바일
   ======================================== */
@media (max-width: 480px) {

    /* 공지사항 작은 모바일 */
    .notice-container {
        padding: 60px 15px 0px !important;
    }

    .notice-main-title {
        font-size: 20px;
    }

    .notice-table tbody tr {
        padding: 12px;
        margin-bottom: 12px;
    }

    .notice-table tbody td:nth-child(2) {
        font-size: 14px;
    }

    .pagination a,
    .pagination span {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}