/* NEWS 학원소식 · DATA 자료실·나눔 — [UD-3] news · archive. 두 화면이 같은 구성이라 한 벌만 둡니다.
   수강후기 스타일은 후기와 함께 학원소개(intro.css)로 옮겼습니다(2026-09-25). */

.view { padding: clamp(40px, 6vw, 64px) 24px 0; }

/* ── 도구줄 · 검색 ([UD-2] 08 "검색 인풋 그룹 — 보더 1px 공유, 검색 버튼 hover Gold") ── */
.board-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.search-bar { display: flex; margin-bottom: 20px; }
.board-tools .search-bar { margin-bottom: 0; }
.search-field { position: relative; flex: 1; min-width: 260px; max-width: 420px; }
.search-field .field { padding-left: 46px; padding-right: 44px; background: var(--surface); }
.search-bar .btn { margin-left: -1px; padding: 0 26px; }
.search-bar .btn:hover { background: var(--gold-500); color: var(--navy-800); }
/* 아이콘은 글자(⌕·×) 대신 SVG입니다(layout/icons) — 글꼴마다 글자 높이·기준선이 달라 입력칸 가운데에서 어긋나고,
   ⌕는 원래 돋보기 기호도 아닙니다(U+2315). 상자를 고정하고 가운데 맞춤으로 둡니다. 아이콘 크기 = 상자의 font-size. */
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
    width: 20px; height: 20px; font-size: 18px; color: var(--text-mute); pointer-events: none; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
    width: 32px; height: 32px; padding: 0; border: none; background: none; cursor: pointer; font-size: 16px; color: var(--text-mute); }
.search-clear:hover { color: var(--navy-800); }
.board-note { margin: 18px 0 0; font-size: 13px; color: var(--text-mute); }
.board-note b { color: var(--danger); }

/* ── 목록 표 — [UD-2] 08 "상단 2px Navy 룰 · 줄무늬 금지 · Hover 행 Paper 반전" ── */
.board-table { border-top: 2px solid var(--navy-800); }
.board-table th { background: none; }
.board-table tbody tr:hover { background: var(--bg); }
.table tr.is-clickable { cursor: pointer; }
.table tr.is-clickable:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }
.col-no { width: 72px; text-align: center; }
.col-no, .col-date, .col-views, .col-num { white-space: nowrap; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.col-title { font-weight: 600; }
.col-title a { color: var(--navy-800); }
.col-title a:hover { color: var(--gold-700); text-decoration: underline; }
.col-cta { text-align: right; white-space: nowrap; }
.cell-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--text-mute); font-weight: 400; }
.btn-mini { padding: 9px 16px; font-size: 13px; }

/* ── NEWS-02 모집현황 ── */
.schedule-list { margin-top: 22px; }
.class-table tr.is-closed td { opacity: .75; }         /* [UD-2] 08 "마감 행 텍스트 75% 감광" */
.class-closed { font-size: 13px; font-weight: 700; color: #9AA1AD; }
.class-cards { display: none; }
.class-card { background: var(--surface); border: 1px solid var(--line); padding: 20px 20px 18px; }
.class-target { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--gold-700); }
.class-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.class-top h3 { font-size: 18px; color: var(--navy-800); }
.class-schedule { margin: 8px 0 4px; font-size: 14px; }
.class-seats { margin: 0 0 12px; font-size: 13.5px; color: var(--text-mute); }
.class-seats b { color: var(--navy-800); }
.class-bar { height: 6px; background: rgba(21, 34, 56, .08); border-radius: 100px; overflow: hidden; }
.class-bar span { display: block; height: 100%; background: var(--gold-500); }
.class-bar.is-almost span { background: var(--danger); }
.class-bar.is-closed span { background: #9AA1AD; }
.class-card-cta { margin-top: 16px; }
.class-card-cta .btn { width: 100%; padding: 13px; }
.class-card-cta .class-closed { display: block; padding: 13px; text-align: center; background: rgba(21, 34, 56, .05); }

/* ── 카드 그리드 (행사 · 칼럼 · 명예의전당) ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(13, 22, 38, .35); }
.post-thumb { position: relative; aspect-ratio: 16 / 10;
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900)) center / cover no-repeat; }
.post-thumb-label { position: absolute; left: 14px; top: 12px; font-family: var(--font-display); font-style: italic;
    font-size: 15px; color: var(--gold-300); text-shadow: 0 1px 6px rgba(13, 22, 38, .5); }
.post-card-body { padding: 20px 22px 24px; }
.post-card-date { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--gold-700); }
.post-card-body h3 { margin: 6px 0 8px; font-size: 19px; line-height: 1.45; color: var(--navy-800); }
.post-card-body p { margin: 0; font-size: 14px; color: var(--text-mute);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.fame-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 22px; }
.fame-card { position: relative; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); }
.fame-card::before { content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 2px; background: var(--gold-500); }
.fame-type { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold-700); }
.fame-card h3 { margin: 10px 0 2px; font-size: 21px; color: var(--navy-800); }
.fame-school { margin: 0 0 14px; font-size: 13px; color: var(--text-mute); }
.fame-content { margin: 0; font-size: 14.5px; line-height: 1.7; }

/* ── 상세 ── */
.back-link { display: none; margin-bottom: 14px; padding: 6px 0; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 700; color: var(--navy-800); }
.post-detail { max-width: 880px; margin: 0 auto; padding: clamp(28px, 5vw, 48px);
    background: var(--surface); border: 1px solid var(--line); }
.post-head { padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-label { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .28em; color: var(--gold-500); }
.post-title { margin: 10px 0 14px; font-size: clamp(22px, 3vw, 30px); color: var(--navy-800); }
.post-meta { display: flex; gap: 10px; margin: 0; font-size: 13px; color: var(--text-mute); }
.post-meta span::before { content: '·'; margin-right: 10px; }
.post-body { min-height: 120px; }

/* 행사 슬라이드 */
/* 행사 사진 슬라이드(FS-NEWS-03) — 관리자 게시물 폼의 "행사 사진". 1장이면 화살표·카운터를 숨깁니다(post-view.js) */
.post-slider { position: relative; margin-bottom: 28px; overflow: hidden; background: var(--navy-900); }
.post-slide { display: none; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-slide.is-on { display: block; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid;
    place-items: center; padding: 0; cursor: pointer; font-size: 22px;
    background: rgba(13, 22, 38, .55); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.slide-nav:hover { border-color: var(--gold-500); }
.slide-nav.is-prev { left: 12px; }
.slide-nav.is-next { right: 12px; }
.slide-count { position: absolute; right: 14px; bottom: 12px; padding: 3px 10px; background: rgba(13, 22, 38, .6);
    font-family: var(--font-display); font-style: italic; font-size: 14px; color: #fff; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.slide-dot { width: 6px; height: 6px; border-radius: 100px; background: rgba(255, 255, 255, .45); transition: .25s; }
.slide-dot.is-on { width: 18px; background: var(--gold-500); }
/* 본문 속 사진(편집기 이미지) */
.post-body img { display: block; margin: 8px 0 20px; border-radius: var(--radius); }

/* 첨부파일 */
.post-files { margin-top: 30px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); }
.post-files-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--text-mute); }
.post-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-file:last-child { border-bottom: none; }
.post-file-name { flex: 1; min-width: 160px; font-size: 14.5px; font-weight: 600; }
.post-file-meta { font-size: 12.5px; color: var(--text-mute); }
.btn-file { padding: 8px 16px; font-size: 13px; }

/* 파일 형식 사각 — [UD-2] 08 "PDF Navy · HWP Gold" */
.file-ext { flex: none; display: grid; place-items: center; width: 40px; height: 40px;
    background: var(--navy-800); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.file-ext.is-gold { background: var(--gold-500); color: var(--navy-800); }

.post-nav { display: flex; justify-content: center; gap: 10px; margin-top: 40px; padding-top: 26px;
    border-top: 1px solid var(--line); }
.post-nav .btn { background: var(--surface); border-color: rgba(21, 34, 56, .2); color: var(--navy-800); padding: 13px 22px; }
.post-nav .btn-dark { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.post-nav .btn:disabled { background: var(--surface); border-color: var(--line); color: #C4C9D2; }

/* ── DATA-01 자료 표 ── */
.archive-table .col-ext { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--navy-800); }
.file-more { font-size: 12px; font-weight: 500; color: var(--text-mute); }
.file-cards { display: none; }
.file-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: center; gap: 12px;
    padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.file-card-body { min-width: 0; }
.file-name { display: block; font-size: 14.5px; font-weight: 700; color: var(--navy-800);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; font-size: 12.5px; color: var(--text-mute); }
.file-meta .badge { padding: 2px 9px; font-size: 11px; }
.file-dl { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer; font-size: 18px;
    color: var(--navy-800); background: var(--surface); border: 1px solid rgba(21, 34, 56, .2); }
.file-dl:hover { border-color: var(--gold-500); color: var(--gold-700); }

/* ── 반응형 ── */
@media (max-width: 960px) {
    .view { padding: 28px 20px 0; }
    .search-field { max-width: none; min-width: 0; }
    .board-tools { flex-direction: column; align-items: stretch; }
    .board-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .board-tools .chip { flex: none; }

    /* 공지 목록 — 제목 + 날짜 2줄 카드([SD-3] 학원소식 §7) */
    .notice-table thead { display: none; }
    .notice-table, .notice-table tbody { display: block; }
    .notice-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px;
        padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .notice-table td { padding: 0; border: none; }
    .notice-table .col-no, .notice-table .col-views { display: none; }
    .notice-table .col-title { grid-column: 1; font-size: 15px; }
    .notice-table .col-date { grid-column: 1; margin-top: 4px; font-size: 12.5px; }
    .notice-table tr::after { content: ''; grid-column: 2; grid-row: 1 / span 2; align-self: center;
        width: 18px; height: 18px; background: var(--text-mute);
        -webkit-mask: var(--icon-chevron-right) center / contain no-repeat; mask: var(--icon-chevron-right) center / contain no-repeat; }

    .class-table-wrap, .archive-table-wrap { display: none; }
    .class-cards, .file-cards { display: grid; gap: 12px; }

    .card-grid { grid-template-columns: 1fr; }
    .back-link { display: inline-block; }
    .post-detail { padding: 26px 18px; }
    .post-nav { flex-direction: column; }
    .post-nav .btn { width: 100%; }
    .post-nav .btn-dark { order: 3; }
    .slide-nav { display: none; }             /* 모바일은 스와이프 + 도트 */

}
