/* ============================================= notice.css 공지사항 / 게시판 스타일 ============================================= */

.notice-page {
    background: #f8fafc;
}

/* 공지사항 목록 테이블 스타일 */
.notice-table-wrap {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.notice-table th,
.notice-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.notice-table th {
    background: #f8fafc;
    font-size: 0.9rem;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.notice-table tr:last-child td {
    border-bottom: none;
}

.notice-table tbody tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

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

.notice-num {
    width: 80px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #6b7280;
}

.notice-num.pinned {
    color: #1e40af;
    font-weight: 800;
}

.notice-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 10px;
}

.badge-notice { background: #eff6ff; color: #1e40af; }
.badge-event  { background: #fef3c7; color: #d97706; }
.badge-info   { background: #f3f4f6; color: #4b5563; }

.notice-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
}

.notice-date {
    width: 130px;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 600;
}

.notice-detail-box {
    display: none;
    background: #f8fafc;
    padding: 24px 30px;
    border-top: 1px dashed #cbd5e1;
    border-bottom: 1px solid #e2e8f0;
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.8;
}

.notice-detail-box.active {
    display: table-row;
}

.notice-detail-content {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .notice-table th,
    .notice-table td {
        padding: 14px 16px;
    }
    .notice-date {
        display: none;
    }
}

.notice-search-bar-wrap {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
}

.notice-search-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
}

.notice-search-box i {
    position: absolute;
    left: 18px;
    color: #9ca3af;
    font-size: 1.1rem;
}

.notice-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    outline: none;
}

.notice-search-box input:focus {
    border-color: #1e40af;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.08);
}

