/* ============================================================
   공지사항 / 공지사항 상세 — mobile-first
   ============================================================ */

/* ── 공지사항 목록 ──────────────────────────────────────── */
.notice {
    padding: 24px 0 60px;
}

.notice__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mute-1);
    text-align: center;
    margin-bottom: 24px;
}

/* 탭 */
.notice-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.notice-tabs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    font-size: 15px;
    color: var(--mute-3);
    text-decoration: none;
    border-bottom: 1px solid var(--mute-3);
    line-height: normal;
    transition: color 0.15s, border-color 0.15s;
}

.notice-tabs__item:hover { color: var(--mute-1); }

.notice-tabs__item--active {
    color: var(--mute-1);
    border-color: var(--mute-1);
}

/* 필터 바 — 모바일에서 숨김 */
.notice-filter {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.notice-filter__total {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: -0.28px;
}

.notice-filter__total-label { color: var(--mute-2); }
.notice-filter__total-count { font-weight: 700; color: #000; }

.notice-filter__controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notice-filter__group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-filter__label {
    font-size: 14px;
    color: var(--mute-2);
    line-height: 28px;
    letter-spacing: -0.28px;
    white-space: nowrap;
}

.notice-filter__sep {
    width: 1px;
    height: 20px;
    background: var(--mute-2);
    opacity: 0.4;
}

.notice-filter__select {
    border: 1px solid var(--mute-6);
    border-radius: 5px;
    height: 35px;
    padding: 0 10px;
    font-size: 13px;
    color: var(--mute-3);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 110px;
    letter-spacing: -0.26px;
}

.notice-filter__date-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-filter__date-sep { font-size: 16px; color: var(--mute-2); }

.notice-filter__date-input {
    border: 1px solid var(--mute-6);
    border-radius: 5px;
    height: 35px;
    padding: 0 10px;
    font-size: 13px;
    color: var(--mute-3);
    letter-spacing: -0.26px;
    width: 110px;
}

.notice-filter__keyword-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--mute-6);
    border-radius: 5px;
    height: 35px;
    padding: 0 10px;
    gap: 6px;
    width: 150px;
    background: #fff;
}

.notice-filter__keyword-input {
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--mute-3);
    width: 100%;
    letter-spacing: -0.26px;
}

.notice-filter__keyword-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 공지사항 테이블 */
.notice-table {
    border-bottom: 1px solid var(--mute-3);
    margin-bottom: 30px;
}

/* 모바일: 헤더 숨김 */
.notice-table__head { display: none; }

.notice-table__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mute-6);
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.notice-table__row:hover { background: #fafafa; }

/* 모바일: 번호/작성자/조회수 숨김 */
.notice-table__col--num,
.notice-table__col--author,
.notice-table__col--date,
.notice-table__col--views {
    display: none;
}

.notice-table__col--pin {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-table__col--category {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.notice-table__col--title {
    flex: 1;
    min-width: 0;
}

.notice-table__num {
    font-size: 14px;
    color: var(--mute-1);
    line-height: 1.5;
}

.notice-table__category {
    font-size: 12px;
    color: var(--mute-3);
    line-height: 1.5;
}

.notice-table__pin-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.notice-table__title-text {
    font-size: 14px;
    color: var(--mute-1);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.notice-table__title-text--pinned { font-weight: 600; }

.notice-table__author {
    font-size: 13px;
    color: var(--mute-2);
    line-height: 1.5;
    text-align: center;
}

.notice-table__date {
    font-size: 13px;
    color: var(--mute-2);
    line-height: 1.5;
    text-align: center;
}

.notice-table__views {
    font-size: 13px;
    color: var(--mute-2);
    line-height: 1.5;
    text-align: center;
}

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

.pagination__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mute-6);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: var(--mute-3);
    letter-spacing: -0.28px;
    text-decoration: none;
}

.pagination__btn--arrow {
    border: none;
    background: none;
}

.pagination__btn--active {
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    color: var(--mute-1);
    border: none;
}

/* ── 공지사항 상세 ───────────────────────────────────────── */
.notice-detail-page {
    padding: 24px 0 60px;
}

.notice-detail-page__title-h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--mute-1);
    text-align: center;
    margin-bottom: 24px;
}

.notice-detail-wrap {
    max-width: 100%;
}

.notice-detail__head {
    border-top: 2px solid #333;
    border-bottom: 1px solid #ddd;
    padding: 16px 0;
    margin-bottom: 0;
}

.notice-detail__meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.notice-detail__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #333;
    color: #fff;
}

.notice-detail__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
}

.notice-detail__info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    flex-wrap: wrap;
}

.notice-detail__body {
    padding: 20px 0;
    min-height: 200px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    border-bottom: 1px solid #ddd;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.notice-detail__body p {
    margin: 0 0 1em;
}

.notice-detail__body p:last-child {
    margin-bottom: 0;
}

.notice-detail__body ul,
.notice-detail__body ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.notice-detail__body img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.notice-detail__body a {
    color: #2563eb;
    text-decoration: underline;
}

.notice-detail__body a:hover {
    color: #1d4ed8;
}

.notice-detail__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
}

.notice-detail__body th,
.notice-detail__body td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}

.notice-nav { margin-top: 0; }

.notice-nav__row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: background 0.1s;
}

.notice-nav__row:hover { background: #fafafa; }

.notice-nav__label {
    width: 50px;
    flex-shrink: 0;
    font-weight: 600;
    color: #999;
}

.notice-nav__title {
    flex: 1;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-nav__empty { color: #ccc; }

.notice-detail__actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 30px;
    border: 1px solid #999;
    background: #fff;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-list:hover { background: #f5f5f5; }

/* ── 데스크탑 오버라이드 ─────────────────────────────────── */
@media (min-width: 1280px) {
    .notice {
        padding: 50px 0;
    }

    .notice__title {
        font-size: 28px;
        margin-bottom: 50px;
    }

    .notice-tabs {
        gap: 30px;
        margin-bottom: 50px;
    }

    .notice-tabs__item {
        font-size: 18px;
        padding: 10px;
    }

    /* 필터 바 표시 */
    .notice-filter {
        display: flex;
    }

    /* 테이블 헤더 표시 */
    .notice-table__head {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 15px 0;
        background: #f3f4f5;
        border-bottom: 1px solid var(--mute-3);
        font-size: 16px;
        color: var(--mute-1);
        text-align: center;
        line-height: 28px;
        letter-spacing: -0.32px;
    }

    .notice-table__row {
        gap: 20px;
        padding: 15px 0;
    }

    /* 모든 컬럼 표시 */
    .notice-table__col--num,
    .notice-table__col--author,
    .notice-table__col--date,
    .notice-table__col--views {
        display: block;
    }

    .notice-table__col--num {
        width: 80px;
        flex-shrink: 0;
        text-align: center;
    }

    .notice-table__col--category {
        width: 80px;
    }

    .notice-table__col--pin {
        width: 24px;
    }

    .notice-table__col--author {
        width: 100px;
        flex-shrink: 0;
        text-align: center;
    }

    .notice-table__col--date {
        width: 100px;
        flex-shrink: 0;
        text-align: center;
    }

    .notice-table__col--views {
        width: 100px;
        flex-shrink: 0;
        text-align: center;
    }

    .notice-table__num { font-size: 16px; }
    .notice-table__category { font-size: 16px; }
    .notice-table__pin-icon { width: 20px; height: 20px; }
    .notice-table__title-text { font-size: 16px; }

    .pagination { gap: 15px; }

    /* 상세 */
    .notice-detail-page {
        padding: 50px 0 80px;
    }

    .notice-detail-page__title-h1 {
        font-size: 28px;
        margin-bottom: 50px;
    }

    .notice-detail-wrap {
        max-width: 860px;
        margin: 0 auto;
    }

    .notice-detail__head {
        padding: 20px 0;
    }

    .notice-detail__title {
        font-size: 20px;
    }

    .notice-detail__info {
        font-size: 13px;
        gap: 20px;
    }

    .notice-detail__body {
        padding: 30px 0;
        font-size: 15px;
        line-height: 2;
    }

    .notice-nav__row {
        padding: 14px 0;
        font-size: 14px;
    }

    .notice-nav__label { width: 60px; }
}
