/* ============================================================
 * 새소식 > 공지사항 목록 (news.css)
 * 모두 #news 범위 안에서만 적용 (기존 페이지 영향 없음)
 * 단위는 px (아이디벨 rem 기준과 무관하게 시안 크기 유지)
 * ============================================================ */
#news {
    --news-point: #DC202E;
    --news-dark: #3c3c3c;
    --news-line: #dcdcdc;
}

/* ---------- 배너 이미지 (images/notice.jpg) ---------- */
#news .sub-banner {
    background: #111 url("/images/news/notice.jpg") center center / cover no-repeat;
}

/* ---------- 배경/기본 초기화 ---------- */
#news .sub-content,
#news .press-wrap {
    background: #fff;
}

#news .hide {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

#news .press-wrap {
    padding: 80px 0 120px;
}

#news .press-wrap .inner {
    width: 100%;
    max-width: 966px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- 검색 ---------- */
#news .ipt-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 68px;
}

#news .ipt-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: auto;
}

#news .ipt-flex select,
#news .ipt-flex input[type="search"] {
    display: block;
    height: 36px;
    margin: 0;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    color: #333;
    font-size: 12px;
    line-height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
}

#news .ipt-flex select {
    width: 107px;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

#news .ipt-flex input[type="search"] {
    width: 266px;
}

#news .ipt-flex input[type="search"]::placeholder {
    color: #999;
}

#news .search-btn {
    display: block;
    width: 52px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--news-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 36px;
    border-radius: 3px;
    cursor: pointer;
}

/* ---------- 목록 ---------- */
#news .board-list .total {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 8px;
}

#news .board-list .total::before {
    content: "총 ";
}

#news .board-list .total b {
    color: #111;
    font-size: 12px;
    font-weight: 700;
}

#news .list-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: 0;
    border-top: 1px solid #111;
    table-layout: fixed;
    background: #fff;
}


#news .list-table colgroup {
    display: none;
}

#news .list-table th.pc-only,
#news .list-table td.pc-only {
    display: table-cell;
}

#news .list-table thead th:nth-child(1) {
    width: 90px;
}

#news .list-table thead th:nth-child(3) {
    width: 110px;
}

#news .list-table th,
#news .list-table td {
    border-left: 0;
    border-right: 0;
    vertical-align: middle;
}

#news .list-table th::before,
#news .list-table th::after,
#news .list-table td::before,
#news .list-table td::after {
    content: none;
    display: none;
}

#news .list-table thead th {
    height: 40px;
    padding: 0;
    background: #f8f8f8;
    font-size: 12px;
    font-weight: 700;
    line-height: 40px;
    color: #111;
    text-align: center;
    border-bottom: 1px solid var(--news-line);
}

#news .list-table tbody td {
    height: 44px;
    padding: 0;
    font-size: 12px;
    line-height: 44px;
    color: #444;
    text-align: center;
    border-bottom: 1px solid var(--news-line);
}

#news .list-table tbody td.list-tit {
    text-align: left;
    padding: 0 20px;
}

#news .list-table tbody td:last-child {
    text-align: center;
    padding-right: 0px;
    color: #777;
}

#news .list-table .tb-link {
    display: block;
    color: inherit;
}

#news .list-table .tb-link:hover .ellipsis {
    text-decoration: underline;
}

#news .list-table .ellipsis {
    margin: 0;
    font-size: 14px;
    line-height: 44px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#news .list-table td.no-data {
    height: 120px;
    font-size: 13px;
    color: #777;
    text-align: center;
}

#news .list-table .m-date {
    display: none;
}

/* ---------- 페이징 ---------- */
#news .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 78px 0 0;
}

#news .pagination .page-btn,
#news .pagination .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #dfdfdf;
    border-radius: 2px;
    background: #fff;
    color: #767676;
    font-size: 12px;
    line-height: 1;
    box-sizing: border-box;
}

#news .pagination .pages {
    margin: 0 12px;
}

#news .pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

#news .pagination .page-number {
    border-color: transparent;
}

#news .pagination .page-number.active {
    background: var(--news-dark);
    border-color: var(--news-dark);
    color: #fff;
    font-weight: 700;
}

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
    #news .press-wrap {
        padding: 40px 0 70px;
    }

    #news .press-wrap .inner {
        padding: 0 16px;
    }

    #news .ipt-wrap {
        margin-bottom: 32px;
    }

    #news .ipt-flex {
        width: 100%;
        flex-wrap: wrap;
    }

    #news .ipt-flex select {
        width: 100%;
    }

    #news .ipt-flex input[type="search"] {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    #news .list-table th.pc-only,
    #news .list-table td.pc-only {
        display: none;
    }

    #news .list-table thead {
        display: none;
    }

    #news .list-table tbody td {
        height: auto;
        line-height: 1.5;
    }

    #news .list-table tbody td.list-tit {
        padding: 12px 4px;
    }

    #news .list-table .ellipsis {
        line-height: 1.5;
        font-size: 14px;
    }

    #news .list-table .m-date {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        color: #999;
    }

    #news .pagination {
        margin-top: 40px;
    }
}

/* ---------- 공지 배지 / 상단 고정 행 ---------- */
#news .badge-notice {
    display: inline-block;
    min-width: 36px;
    height: 20px;
    padding: 0 6px;
    border-radius: 2px;
    background: var(--news-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-sizing: border-box;
}

/* 공지 행 배경 (연한 파랑) */
#news .list-table tbody tr.is-top td {
    background: #f1f5fb;
}

/* 제목 옆 배지는 PC에서 숨김 (모바일에서만 사용) */
#news .list-table .m-badge {
    display: none;
}

@media (max-width: 768px) {
    #news .list-table .m-badge {
        display: inline-block;
        margin-bottom: 6px;
    }
}

/* ============================================================
 * 공지사항 상세 (noticedetail.php)
 * ============================================================ */
#news .notice-view {
    padding: 60px 0 120px;
    background: #fff;
}

#news .notice-view .inner {
    width: 100%;
    max-width: 966px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* 제목 영역 */
#news .view-head {
    padding: 30px 0 20px;
    border-top: 1px solid #666;
    border-bottom: 1px solid #e5e5e5;
}

#news .view-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    word-break: keep-all;
}

#news .view-date {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1;
    color: #888;
}

/* 본문 */
#news .view-body {
    padding: 36px 0 44px;
    font-size: 14px;
    line-height: 1.9;
    color: #444;
    word-break: keep-all;
}

/* 첨부파일 */
#news .view-file {
    margin: 0 0 40px;
    padding: 0 24px;
    background: #f6f6f6;
}

#news .view-file a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    font-size: 13px;
    color: #555;
}

#news .view-file a:hover .file-name {
    text-decoration: underline;
}

#news .view-file .file-ico {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21.4 11.1l-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/></svg>") no-repeat center / contain;
}

#news .view-file .file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 목록 버튼 */
#news .view-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

#news .view-btn .btn-list {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 44px;
    background: var(--news-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 3px;
}

/* 이전글 / 다음글 */
#news .view-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e5e5e5;
}

#news .view-nav li {
    display: flex;
    align-items: center;
    height: 50px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    color: #555;
}

#news .view-nav .nav-label {
    flex: 0 0 90px;
    padding-left: 4px;
    font-weight: 700;
    color: #111;
}

#news .view-nav a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #555;
}

#news .view-nav a:hover {
    text-decoration: underline;
}

#news .view-nav .nav-none {
    color: #aaa;
}

/* 모바일 */
@media (max-width: 768px) {
    #news .notice-view {
        padding: 32px 0 70px;
    }

    #news .notice-view .inner {
        padding: 0 16px;
    }

    #news .view-head {
        padding: 22px 0 16px;
    }

    #news .view-title {
        font-size: 18px;
    }

    #news .view-body {
        padding: 24px 0 32px;
        font-size: 13px;
    }

    #news .view-file {
        padding: 0 16px;
    }

    #news .view-btn .btn-list {
        width: 100%;
    }

    #news .view-nav .nav-label {
        flex-basis: 64px;
    }
}