﻿/* =========================================================
   /css/notice_ui.css
   공지사항 목록/상세 전용 디자인 개선
   news_font_clean.css 뒤에 로드
   ========================================================= */

/* =========================================================
   공지사항 공통
   ========================================================= */

.notice-main-only,
.notice-view-wrap {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.notice-main-only .news-page-head,
.notice-view-wrap .news-page-head {
    margin-bottom: 26px;
}

.notice-main-only .news-page-title,
.notice-view-wrap .article-title {
    color: #111827;
    font-family: var(--font-news-clean, "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif) !important;
    letter-spacing: -0.065em;
}

/* =========================================================
   공지사항 목록 상단
   ========================================================= */

.notice-main-only .news-page-head {
    position: relative;
    padding: 0 0 18px;
    border-bottom: 2px solid #202632;
}

.notice-main-only .news-page-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 750;
}

.notice-main-only .news-page-desc {
    margin-top: 9px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}

.notice-main-only .news-toolbar {
    min-height: 42px;
    margin-bottom: 14px;
    padding: 0 2px;
    color: #6b7280;
    font-size: 14px;
}

.notice-main-only .news-count strong {
    color: #1f5fae;
    font-weight: 700;
}

/* =========================================================
   공지사항 테이블
   ========================================================= */

.notice-list-wrap {
    overflow: hidden;
    border-top: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    border: 1px solid #e4e8ef;
}

.notice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.notice-table thead th {
    height: 54px;
    padding: 0 16px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
    border-bottom: 1px solid #dfe5ee;
    color: #334155;
    font-size: 14px;
    font-weight: 650 !important;
    letter-spacing: -0.035em;
    text-align: center;
    white-space: nowrap;
}

.notice-table tbody td {
    min-height: 64px;
    padding: 17px 16px;
    border-bottom: 1px solid #edf1f5;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
}

.notice-table tbody tr:last-child td {
    border-bottom: 0;
}

.notice-table tbody tr {
    transition: background 0.14s ease;
}

.notice-table tbody tr:hover {
    background: #f8fbff;
}

.notice-title-cell {
    text-align: left !important;
}

.notice-title-cell a {
    display: inline-block;
    max-width: 100%;
    color: #111827;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600 !important;
    letter-spacing: -0.045em;
    word-break: keep-all;
}

.notice-title-cell a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #1f5fae;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

.notice-empty {
    padding: 54px 16px !important;
    color: #8b95a1 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* =========================================================
   공지사항 페이징
   ========================================================= */

.notice-main-only .news-paging {
    margin-top: 26px;
}

.notice-main-only .news-paging a,
.notice-main-only .news-paging strong {
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

.notice-main-only .news-paging strong {
    border-color: #1f5fae;
    background: #1f5fae;
}

/* =========================================================
   공지사항 상세
   ========================================================= */

.notice-view-wrap {
    padding-top: 8px;
}

.notice-view-wrap .article-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 16px;
    padding: 0 11px;
    border: 1px solid #c9daf8;
    border-left: 3px solid #1f5fae;
    background: #f4f8ff !important;
    color: #1f5fae !important;
    font-size: 13px;
    font-weight: 600 !important;
}

.notice-view-wrap .article-title {
    margin: 0;
    font-size: 36px;
    line-height: 1.32;
    font-weight: 750 !important;
    color: #111827;
    word-break: keep-all;
}

.notice-view-wrap .article-meta {
    margin-top: 20px;
    padding: 16px 0 18px;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #dfe5ee;
    color: #7a8391;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.notice-view-wrap .article-meta span {
    position: relative;
}

.notice-view-wrap .article-meta span + span::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 50%;
    width: 1px;
    height: 11px;
    background: #d1d7e0;
    transform: translateY(-50%);
}

.notice-view-wrap .article-content {
    margin-top: 30px;
    padding: 0 2px;
    color: #252b36;
    font-family: var(--font-news-clean, "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif) !important;
    font-size: 18px;
    line-height: 1.92;
    font-weight: 400;
    letter-spacing: -0.035em;
    word-break: keep-all;
}

.notice-view-wrap .article-content p {
    margin: 0 0 1.18em;
}

.notice-view-wrap .article-content img {
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 12px;
}

.notice-view-wrap .article-content h2 {
    margin: 1.6em 0 0.75em;
    color: #111827;
    font-size: 24px;
    line-height: 1.38;
    font-weight: 700;
    letter-spacing: -0.055em;
}

.notice-view-wrap .article-content h3 {
    margin: 1.5em 0 0.7em;
    color: #111827;
    font-size: 21px;
    line-height: 1.42;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.notice-view-wrap .article-tools {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #edf1f5;
    display: flex;
    justify-content: flex-end;
}

.notice-view-wrap .article-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #cfd6df;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500 !important;
}

.notice-view-wrap .article-tool-btn:hover {
    border-color: #1f5fae;
    background: #f4f8ff;
    color: #1f5fae;
}

/* 상세 카드 느낌 */
.notice-view-wrap::before {
    content: "";
    display: block;
    height: 2px;
    margin-bottom: 26px;
    background: #202632;
}

/* =========================================================
   모바일
   ========================================================= */

@media (max-width: 720px) {
    .notice-main-only,
    .notice-view-wrap {
        max-width: none;
    }

    .notice-main-only .news-page-title {
        font-size: 27px;
    }

    .notice-list-wrap {
        overflow-x: auto;
        border-radius: 14px;
    }

    .notice-table {
        min-width: 680px;
    }

    .notice-table thead th {
        height: 50px;
        padding: 0 12px;
        font-size: 13px;
    }

    .notice-table tbody td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .notice-title-cell a {
        font-size: 15px;
    }

    .notice-view-wrap .article-title {
        font-size: 29px;
        line-height: 1.38;
    }

    .notice-view-wrap .article-content {
        margin-top: 24px;
        font-size: 16.8px;
        line-height: 1.86;
    }

    .notice-view-wrap .article-tools {
        display: grid;
        grid-template-columns: 1fr;
    }

    .notice-view-wrap .article-tool-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .notice-main-only .news-page-title {
        font-size: 25px;
    }

    .notice-main-only .news-toolbar {
        display: block;
        line-height: 1.8;
    }

    .notice-view-wrap .article-title {
        font-size: 27px;
    }

    .notice-view-wrap .article-meta {
        display: block;
        line-height: 1.8;
    }

    .notice-view-wrap .article-meta span {
        display: block;
    }

    .notice-view-wrap .article-meta span + span::before {
        display: none;
    }
}

/* =========================================================
   notice_view.asp 상단 notice.asp와 통일
   ========================================================= */

.notice-view-page .notice-main-only .news-page-head {
    margin-bottom: 26px;
}

.notice-view-detail-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 0 0;
}

.notice-view-wrap::before {
    display: none !important;
}

.notice-article-title {
    margin-top: 0 !important;
}

.notice-article-meta {
    margin-top: 20px;
}

.notice-article-tools {
    margin-bottom: 0;
}