/* ========================================
   공지사항 페이지
   ======================================== */

.nt-section {
    background: #fff;
    padding: 48px 0 96px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.nt-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 60px;
    background: #fff;
    border-radius: 30px 30px 0 0;
}
.nt-section .container { position: relative; z-index: 1; }

/* ===== 검색 ===== */
.nt-search-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.nt-search-box {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #ddd;
    width: 360px;
    max-width: 100%;
    transition: border-color 0.2s;
}
.nt-search-box:focus-within { border-bottom-color: var(--color-sub-accent); }
.nt-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 4px;
    font-size: 0.9rem;
    background: transparent;
}
.nt-search-box input::placeholder { color: #bbb; }
.nt-search-box button {
    border: none;
    background: transparent;
    padding: 8px 10px;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
}

/* ===== 총 건수 ===== */
.nt-count-row {
    padding: 18px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #eee;
}
.nt-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.nt-count strong { color: #1a1a1a; }

/* ===== 리스트 ===== */
.nt-list { }
.nt-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    align-items: center;
    gap: 20px;
    padding: 22px 12px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.nt-row:hover {
    background: #faf8f3;
    color: inherit;
}

.nt-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c8102e;
}

.nt-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nt-row:hover .nt-title { color: var(--color-sub-accent); }

.nt-attach {
    color: #999;
    font-size: 0.88rem;
}

.nt-date {
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    font-weight: 500;
}

/* 빈 상태 */
.nt-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
}
.nt-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

/* ===== 페이징 ===== */
.nt-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 44px;
}
.nt-paging a, .nt-paging span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    border: 1px solid #e5e5e5;
    padding: 0 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.nt-paging a:hover { background: #f5f5f5; color: #333; }
.nt-paging .active {
    background: var(--color-sub-accent);
    color: #fff;
    border-color: var(--color-sub-accent);
}
.nt-paging .disabled {
    color: #ccc;
    pointer-events: none;
    border-color: #eee;
}

/* ===== 반응형 ===== */
@media (max-width: 767px) {
    .nt-row { grid-template-columns: 56px 1fr 80px; gap: 12px; padding: 18px 6px; }
    .nt-title { font-size: 0.88rem; }
    .nt-date { font-size: 0.78rem; }
    .nt-search-box { width: 100%; }
}
