@charset "utf-8";
/* ==========================================================================
   page.css — 서브 페이지 공통 컴포넌트
   그룹: 1.본문 구획 2.표(정보·목록) 3.게시판 도구·페이징 4.상태 배지
         5.폼 6.이용 흐름 7.안내 박스 8.첨부파일 9.진행 현황 10.마이페이지
         11.갤러리 12.성과 13.게시글 보기 14.인증 폼 카드
   ========================================================================== */

/* 1. 본문 구획 ------------------------------------------------------------- */
.p-sec { padding: 0 0 72px; }
.p-sec + .p-sec { padding-top: 8px; }
.p-h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.p-h2-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }	/* 제목 + 우측 상단 더보기 */
.p-h2-row .p-h2 { margin: 0; }
.p-h2-row .more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; color: var(--blue); }
.p-h2-row .more-link:hover svg, .p-h2-row .more-link:focus-visible svg { transform: translateX(4px); }
.p-h2-row .more-link svg { transition: transform .3s; }
.p-h3 { font-size: 18px; font-weight: 800; margin: 36px 0 12px; }
.p-lead { max-width: 64ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--text-sub); margin-bottom: 28px; }
.p-text { max-width: 70ch; font-size: 17px; margin-bottom: 14px; }
.p-split { display: grid; gap: 28px; }
@media (min-width: 900px) { .p-split { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; } .p-split--even { grid-template-columns: 1fr 1fr; } }
.p-list { margin: 0 0 16px; padding-left: 0; }
.p-list li { position: relative; padding: 6px 0 6px 18px; max-width: 68ch; }
.p-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.sample-note { margin-top: 20px; font-size: 13px; color: var(--text-sub); }

/* 2. 표 --------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.tbl caption { position: absolute; left: -9999px; }
.tbl th, .tbl td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl thead th { background: var(--paper); font-size: 14px; font-weight: 800; white-space: nowrap; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.tbl-info { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.tbl-info caption { position: absolute; left: -9999px; }
.tbl-info th { width: 150px; padding: 16px 16px; background: var(--paper); text-align: left; font-weight: 800; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-info td { padding: 16px 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
  .tbl-info th, .tbl-info td { display: block; width: 100%; } .tbl-info th { border-bottom: 0; padding-bottom: 6px; background: none; color: var(--text-sub); font-size: 13px; }
  .tbl-stack thead { display: none; } .tbl-stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); } .tbl-stack td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 5px 4px; } .tbl-stack td::before { content: attr(data-th); color: var(--text-sub); font-weight: 700; flex: none; }
}

/* 3. 게시판 도구·페이징 ------------------------------------------------------ */
.b-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.b-count { color: var(--text-sub); } .b-count b { color: var(--ink); }
.b-search { display: flex; gap: 8px; flex-wrap: wrap; }
.b-search .in { min-height: 46px; }
.b-search .btn { min-height: 46px; padding: 0 22px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; font-weight: 700; color: var(--text-sub); }
.pager a:hover { background: var(--paper); color: var(--ink); }
.pager .on { background: var(--ink); color: #fff; }
.b-actions { display: flex; justify-content: flex-end; margin-top: 20px; gap: 8px; }
.is-notice td:first-child b { color: var(--blue); }

/* 4. 상태 배지 --------------------------------------------------------------- */
.st { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: #eceff3; color: #4b5563; }
.st--ing, .st--ok { background: #e3ecff; color: #1b45c9; }
.st--soon { background: #e0f4f4; color: #0b6b6b; }
.st--wait { background: #e4eaf6; color: #34527f; }
.st--no, .st--closed { background: #fde7e7; color: #a42222; }
.st--done { background: #e6edf7; color: #2e4a7d; }

/* 5. 폼 ---------------------------------------------------------------------- */
.in, .sel, .ta { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #b9c2d3; border-radius: 10px; background: #fff; font: inherit; color: var(--text); transition: border-color .25s, box-shadow .25s; }
.ta { padding: 14px 16px; min-height: 160px; resize: vertical; }
.in:hover, .sel:hover, .ta:hover { border-color: var(--ink); }
.in:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb),.18); }
.in::placeholder, .ta::placeholder { color: #8791a5; }
.form { display: grid; gap: 22px; }
.field label, .field .lb { display: block; margin-bottom: 8px; font-weight: 800; font-size: 15px; }
.req { color: var(--danger); margin-left: 4px; }
.hint { margin-top: 6px; font-size: 13px; color: var(--text-sub); }
.err { margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 600; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chk { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.agree { max-height: 150px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14px; color: var(--text-sub); margin-bottom: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn--line2 { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } .btn--line2:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--danger { background: var(--danger); } .btn--danger:hover { background: #a82020; box-shadow: 0 14px 28px rgba(198,40,40,.3); }
.fileline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fileline input[type="file"] { flex: 1; min-width: 200px; padding: 10px; border: 1px dashed #b9c2d3; border-radius: 10px; background: var(--paper); }

/* 6. 이용 흐름(구성안의 "이용 흐름") ------------------------------------------- */
.flow { display: grid; gap: 10px; counter-reset: fl; margin: 8px 0 8px; }
.flow li { position: relative; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); font-weight: 800; }
.flow li small { display: block; margin-top: 4px; font-weight: 500; color: var(--text-sub); }
.flow li::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateX(-50%) rotate(45deg); }
.flow li:last-child::after { display: none; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .flow li::after { left: auto; right: -17px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}

/* 7. 안내 박스 --------------------------------------------------------------- */
.box { padding: 22px 24px; border-radius: var(--radius); background: var(--paper); margin: 0 0 24px; }
.box h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.box--ink { background: var(--ink); color: #fff; } .box--ink p, .box--ink li { color: var(--on-ink-sub); }
.box ul { margin: 0; } .box li { padding: 4px 0 4px 16px; position: relative; font-size: 15px; }
.box li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* 8. 첨부파일 ---------------------------------------------------------------- */
.files { border-top: 1px solid var(--line); }
.files li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.files a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.files a:hover { color: var(--blue); }
.files small { color: var(--text-sub); }

/* 9. 진행 현황(이수현황) ------------------------------------------------------- */
.prog-row { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .prog-row { grid-template-columns: 180px minmax(0, 1fr) 110px; align-items: center; gap: 24px; } }
.prog-row b { font-size: 17px; } .prog-row .n { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.bar { position: relative; height: 10px; border-radius: 999px; background: #e6eaf2; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: inherit; background: var(--blue); transform-origin: left; }
.js .bar i { transform: scaleX(0); transition: transform 1.3s var(--ease); } .js .is-in .bar i, .js .bar.is-in i { transform: scaleX(1); }
.lv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-chips span { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #eceff3; color: #4b5563; }
.lv-chips .ok { background: var(--blue); color: #fff; }

/* 10. 마이페이지 ------------------------------------------------------------- */
.mp-hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; margin-bottom: 28px; }
.mp-hello h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.mp-hello p { color: var(--on-ink-sub); margin-top: 6px; }
.mp-hello .btn { background: #fff; color: var(--ink); } .mp-hello .btn:hover { background: #fff; }
.mp-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .mp-grid { grid-template-columns: 1.4fr 1fr; } }
.panel { padding: 24px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.panel h3 { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.panel h3 a { font-size: 14px; color: var(--blue); }
.alerts li { padding: 14px 0; border-top: 1px solid var(--line); }
.alerts li:first-child { border-top: 0; }
.alerts a { display: block; font-weight: 700; } .alerts a:hover { color: var(--blue); }
.alerts small { display: block; color: var(--text-sub); margin-top: 2px; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-list .t { font-weight: 700; } .mini-list small { display: block; color: var(--text-sub); font-weight: 500; }
.cert-row { display: grid; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .cert-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; } }
.cert-row h3 { font-size: 19px; font-weight: 800; } .cert-row p { color: var(--text-sub); margin-top: 4px; font-size: 15px; }
.cert-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* 11. 갤러리 ----------------------------------------------------------------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.gal a { display: block; }
.gal .th { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, #0b3470, #0a1b3f 60%, #0d6a7a); color: #b8c4de; font-weight: 600; overflow: hidden; transition: transform .8s var(--ease); }
.gal a:hover .th { transform: translateY(-6px); }
.gal b { display: block; margin-top: 12px; font-size: 16px; } .gal small { color: var(--text-sub); }

/* 12. 성과 ------------------------------------------------------------------- */
.kpi { border-top: 2px solid var(--ink); }
.kpi li { display: grid; gap: 10px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .kpi li { grid-template-columns: 220px 160px minmax(0, 1fr); align-items: center; gap: 28px; } }
.kpi b { font-size: 18px; } .kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }

/* 13. 게시글 보기 -------------------------------------------------------------- */
.view-head { padding: 24px 4px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.view-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.view-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; color: var(--text-sub); font-size: 14px; }
.view-body { padding: 36px 4px; min-height: 240px; font-size: 17px; line-height: 1.85; border-bottom: 1px solid var(--line); }
.view-nav { border-bottom: 1px solid var(--line); }
.view-nav li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 16px 4px; border-top: 1px solid var(--line); }
.view-nav li:first-child { border-top: 0; } .view-nav span { color: var(--text-sub); font-weight: 700; } .view-nav a:hover { color: var(--blue); }

/* 14. 인증 폼 카드(로그인·가입·찾기) ------------------------------------------- */
.auth { max-width: 560px; margin: 0 auto; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.auth h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth .p-lead { margin-bottom: 24px; font-size: 15px; }
.auth .btn { width: 100%; }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: 14px; color: var(--text-sub); }
.auth-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.sub-article { min-width: 0; }
.js .sub-article [data-reveal] { transition-duration: .8s, .9s; }

/* 트랙 소개 머리말(교육과정) */
.track-hero { margin: 0 0 40px; }
.court { width: 100%; }

/* 15. 사이트맵 (CELMON 사이트맵 구성: 영역 제목 + 하위 메뉴 박스, 순차 등장) ------------ */
.sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; padding: 8px 0; }
@media (min-width: 1000px) { .sitemap { grid-template-columns: repeat(4, 1fr); gap: 20px 28px; } }
@media (max-width: 520px) { .sitemap { grid-template-columns: 1fr; } }
.sitemap .area { display: flex; flex-direction: column; margin-bottom: 28px; animation: smUp .8s var(--ease) both; }
.sitemap .area:nth-child(1) { animation-delay: .05s; } .sitemap .area:nth-child(2) { animation-delay: .12s; }
.sitemap .area:nth-child(3) { animation-delay: .19s; } .sitemap .area:nth-child(4) { animation-delay: .26s; }
.sitemap .area:nth-child(5) { animation-delay: .33s; } .sitemap .area:nth-child(6) { animation-delay: .40s; }
.sitemap .area:nth-child(7) { animation-delay: .47s; } .sitemap .area:nth-child(8) { animation-delay: .54s; }
.sitemap .area h3 a { position: relative; display: flex; align-items: center; margin-bottom: 16px; padding: 18px 22px 18px 0; border-radius: 16px 0 16px 0; overflow: hidden; isolation: isolate; font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); transition: color .4s; }
.sitemap .area h3 a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateX(-101%); transition: transform .6s var(--ease); }
.sitemap .area h3 a span { display: block; transition: transform .5s var(--ease); }
.sitemap .area h3 a:hover, .sitemap .area h3 a:focus-visible { color: #fff; }
.sitemap .area h3 a:hover::before, .sitemap .area h3 a:focus-visible::before { transform: none; }
.sitemap .area h3 a:hover span, .sitemap .area h3 a:focus-visible span { transform: translateX(18px); }
.sitemap .sub_cate li { margin-bottom: 8px; }
.sitemap .sub_cate a { position: relative; display: block; padding: 15px 40px 15px 16px; border: 1px solid rgba(10,27,63,.1); background: #fff; font-weight: 600; color: var(--text-sub); transition: transform .4s var(--ease), border-color .3s, color .3s; }
.sitemap .sub_cate a::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(-6px) rotate(-45deg); opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.sitemap .sub_cate a:hover, .sitemap .sub_cate a:focus-visible { border-color: var(--blue); color: var(--blue); transform: translateX(5px); }
.sitemap .sub_cate a:hover::after, .sitemap .sub_cate a:focus-visible::after { opacity: 1; transform: translateX(0) rotate(-45deg); }
@keyframes smUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sitemap .area { animation: none; } }

/* 폼 처리 결과 안내 (ajax_form.js) */
.form-msg { margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--radius); background: #fde7e7; color: #a42222; font-size: 14px; font-weight: 600; }
.form-msg.is-ok { background: #e6f4ea; color: #146c2e; }

/* 학번 중복확인 결과 (가능=파랑, 불가=빨강) */
.hint.is-ok { color: var(--blue); font-weight: 700; }
.hint.is-error { color: var(--danger); font-weight: 700; }
/* 비밀번호 보기·숨기기 (ajax_form.js data-pw-toggle) */
.pw-wrap { position: relative; }
.pw-wrap .in { padding-right: 52px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-sub); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
