/* ===== HEAD ===== */
.nt-head {margin-bottom: 24px;text-align: center;}
.nt-head-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #1255a4;
    margin-bottom: 6px;
}
.nt-head-title {
    font-size: 26px;
    font-weight: 900;
    color: #0d1b3e;
    margin: 0;
}

/* ===== 검색 ===== */
.nt-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f8ff;
    border: 1.5px solid #dde6f5;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
}
.nt-search-sel {
    border: 1.5px solid #dde6f5;
    background: #fff;
    border-radius: 7px;
    font-size: 14px;
    padding: 9px 12px;
    color: #555;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
}
.nt-search-input {
    flex: 1;
    border: 1.5px solid #dde6f5;
    border-radius: 7px;
    font-size: 14px;
    padding: 9px 14px;
    outline: none;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    min-width: 0;
}
.nt-search-input:focus { border-color: #1255a4; }
.nt-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1255a4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nt-search-btn:hover { background: #0e4491; }
.nt-search-btn svg { width: 15px; height: 15px; }

/* ===== 리스트 ===== */
.nt-list {
    border-top: 2px solid #0d1b3e;
    margin-bottom: 20px;
}

/* PC 헤더 */
.nt-list-head {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    background: #f8fafd;
    border-bottom: 1px solid #e4eaf5;
}
.nt-list-head .nt-col-no,
.nt-list-head .nt-col-title,
.nt-list-head .nt-col-writer,
.nt-list-head .nt-col-date {
    font-size: 13px;
    font-weight: 700;
    color: #888;
}

/* 컬럼 너비 */
.nt-col-no {
    width: 76px;
    min-width: 76px;
    text-align: center;
    flex-shrink: 0;
}
.nt-col-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.nt-col-writer {
    width: 100px;
    min-width: 100px;
    text-align: center;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}
.nt-col-date {
    width: 112px;
    min-width: 112px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
    flex-shrink: 0;
}

/* 항목 행 */
.nt-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f4fb;
    transition: background 0.15s;
}
.nt-item:hover { background: #f5f8ff; }
.nt-notice { background: #fafcff; }
.nt-notice:hover { background: #eef3fc; }

/* 제목 링크 */
.nt-col-title a {
    color: #1a2a4a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
}
.nt-col-title a:hover { color: #1255a4; }

/* 공지 배지 */
.nt-badge {
    display: inline-block;
    background: #0d1b3e;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* N 배지 */
.nt-new {
    display: inline-block;
    background: #e53e3e;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.5;
    flex-shrink: 0;
}

/* 번호 */
.nt-no-num {
    font-size: 13px;
    color: #bbb;
    font-weight: 600;
}

/* 모바일용 메타(기본 숨김) */
.nt-meta-row { display: none; }

/* ===== 페이징 ===== */
.nt-paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}
.nt-page-btn {
    min-width: 36px;
    height: 36px;
    border: 1.5px solid #dde6f5;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nt-page-btn:hover { border-color: #1255a4; color: #1255a4; }
.nt-page-btn.active { background: #1255a4; border-color: #1255a4; color: #fff; }
.nt-page-btn:disabled { opacity: 0.3; pointer-events: none; }
.nt-page-arrow svg { width: 14px; height: 14px; }

/* ===== 글쓰기 버튼 ===== */
.nt-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}
.nt-btn-write {
    background: #1255a4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.2s;
}
.nt-btn-write:hover { background: #0e4491; }

/* ===== 보기 (VIEW) ===== */
.ntv-wrap {
    background: #fff;
    border: 1.5px solid #e4eaf5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
.ntv-title-area {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #f0f4fb;
    background: #f8fafd;
}
.ntv-title {
    font-size: 17px;
    font-weight: 800;
    color: #0d1b3e;
    margin: 0;
    line-height: 1.5;
}
.ntv-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 11px 24px;
    border-bottom: 1px solid #f0f4fb;
    background: #fcfdff;
}
.ntv-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #aaa;
}
.ntv-meta svg { width: 12px; height: 12px; }
.ntv-body {
    padding: 28px 24px;
    font-size: 14px;
    color: #333;
    line-height: 1.85;
    min-height: 180px;
    border-bottom: 1px solid #f0f4fb;
}
.ntv-body p { margin-bottom: 14px; }
.ntv-body p:last-child { margin-bottom: 0; }

.ntv-file-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 24px;
    border-bottom: 1px solid #f0f4fb;
    background: #f8fafd;
}
.ntv-file-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    white-space: nowrap;
}
.ntv-file-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #1255a4;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}
.ntv-file-item:hover { opacity: 0.7; }
.ntv-file-item svg { width: 13px; height: 13px; }

.ntv-nav { }
.ntv-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f4fb;
    font-size: 13px;
}
.ntv-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #1255a4;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ntv-nav-label svg { width: 11px; height: 11px; }
.ntv-nav-item a {
    color: #333;
    text-decoration: none;
    flex: 1;
    transition: color 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ntv-nav-item a:hover { color: #1255a4; }

.ntv-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fafd;
    gap: 8px;
}
.ntv-actions-right { display: flex; gap: 8px; }
.ntv-btn-list, .ntv-btn-edit, .ntv-btn-delete {
    padding: 9px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: none;
    display: inline-block;
}
.ntv-btn-list { background: #fff; color: #666; border: 1.5px solid #dde6f5; }
.ntv-btn-list:hover { border-color: #1255a4; color: #1255a4; }
.ntv-btn-edit { background: #1255a4; color: #fff; }
.ntv-btn-edit:hover { background: #0e4491; }
.ntv-btn-delete { background: #fff; color: #e53e3e; border: 1.5px solid #fdc5c5; }
.ntv-btn-delete:hover { background: #fff0f0; }

/* ===== 쓰기/수정 폼 ===== */
.ntw-form {
    background: #fff;
    border: 1.5px solid #e4eaf5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
.ntw-field-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f4fb;
    min-height: 54px;
}
.ntw-field-top { align-items: flex-start; }
.ntw-label {
    width: 120px;
    min-width: 120px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    background: #f8fafd;
    align-self: stretch;
    display: flex;
    align-items: center;
    border-right: 1px solid #f0f4fb;
    flex-shrink: 0;
}
.ntw-field-top .ntw-label { align-items: flex-start; padding-top: 16px; }
.ntw-required { color: #1255a4; margin-left: 2px; }
.ntw-input-wrap { flex: 1; padding: 10px 14px; min-width: 0; }
.ntw-input, .ntw-select, .ntw-textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    color: #1a2a4a;
    background: #fff;
    border: 1.5px solid #dde6f5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.ntw-input:focus, .ntw-select:focus, .ntw-textarea:focus { border-color: #1255a4; }
.ntw-textarea { resize: vertical; min-height: 280px; line-height: 1.75; }
.ntw-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231255a4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
    width: auto;
    min-width: 120px;
}
.ntw-file-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ntw-file-hidden { display: none; }
.ntw-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1.5px solid #dde6f5;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.ntw-file-btn:hover { border-color: #1255a4; color: #1255a4; }
.ntw-file-btn svg { width: 13px; height: 13px; }
.ntw-file-hint { font-size: 11px; color: #bbb; }
.ntw-file-list { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ntw-file-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    background: #f5f8ff;
    padding: 5px 10px;
    border-radius: 5px;
}
.ntw-file-item svg { width: 12px; height: 12px; flex-shrink: 0; }
.ntw-file-item span { margin-left: auto; color: #aaa; font-size: 11px; }
.ntw-exist-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1255a4;
    font-weight: 600;
    background: #f0f4fb;
    padding: 6px 12px;
    border-radius: 6px;
}
.ntw-exist-file svg { width: 13px; height: 13px; }
.ntw-file-del {
    background: none;
    border: 1px solid #fdc5c5;
    color: #e53e3e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 4px;
}
.ntw-file-del:hover { background: #fff0f0; }
.ntw-radio-wrap { display: flex; gap: 20px; align-items: center; }
.ntw-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
.ntw-radio input { display: none; }
.ntw-radio-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #c5d7f5;
    border-radius: 50%;
    background: #f5f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.ntw-radio input:checked + .ntw-radio-box {
    border-color: #1255a4;
    background: #1255a4;
    box-shadow: inset 0 0 0 3px #fff;
}
.ntw-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 18px;
    background: #f8fafd;
    border-top: 1.5px solid #f0f4fb;
}
.ntw-btn-cancel {
    padding: 10px 26px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    border: 1.5px solid #dde6f5;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.ntw-btn-cancel:hover { border-color: #1255a4; color: #1255a4; }
.ntw-btn-submit {
    padding: 10px 30px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #1255a4;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.ntw-btn-submit:hover { background: #0e4491; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {

    /* 검색 세로 */
    .nt-search-wrap { flex-direction: column; align-items: stretch; }
    .nt-search-sel, .nt-search-input, .nt-search-btn {
        width: 100%;
        justify-content: center;
    }

    /* 헤더 숨김 */
    .nt-list-head { display: none; }

    /* 항목 카드형 */
    .nt-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 14px 16px;
    }

    /* 제목 col — 세로로 쌓임 */
    .nt-col-title {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .nt-col-title a {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: 100%;
        font-size: 14px;
        font-weight: 700;
        color: #0d1b3e;
        line-height: 1.5;
    }

    /* PC용 작성자/날짜 숨김 */
    .nt-item > .nt-col-writer,
    .nt-item > .nt-col-date { display: none; }

    /* 모바일용 메타 표시 */
    .nt-meta-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 2px;
    }
    .nt-meta-row .nt-col-writer {
        width: auto;
        min-width: auto;
        font-size: 12px;
        color: #999;
        text-align: left;
    }
    .nt-meta-row .nt-col-writer::after {
        content: '·';
        margin-left: 6px;
        color: #ddd;
    }
    .nt-meta-row .nt-col-date {
        width: auto;
        min-width: auto;
        font-size: 12px;
        color: #bbb;
        text-align: left;
    }

    /* No. 열 */
    .nt-col-no {
        width: auto;
        min-width: auto;
        text-align: left;
    }

    /* view */
    .ntv-title-area { padding: 16px; }
    .ntv-title { font-size: 15px; }
    .ntv-meta { padding: 10px 16px; gap: 10px; }
    .ntv-body { padding: 18px 16px; font-size: 13px; }
    .ntv-file-area { padding: 12px 16px; }
    .ntv-actions { flex-direction: column; }
    .ntv-actions-right { justify-content: flex-end; }

    /* 폼 */
    .ntw-label { width: 80px; min-width: 80px; padding: 12px 10px; font-size: 12px; }
    .ntw-actions { flex-direction: column; }
    .ntw-btn-cancel, .ntw-btn-submit { text-align: center; width: 100%; }
}

@media (max-width: 480px) {
    .nt-head-title { font-size: 22px; }
    .ntv-title { font-size: 14px; }
    .ntv-nav-item { flex-wrap: wrap; gap: 6px; }
}
