/* 동적 기능 전용 스타일 — 기존 페이지 디자인(common/main/sub.css)은 수정하지 않고 새로 필요한 것만 추가 */

/* 페이지 번호 */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, .12); background: #fff; color: #363636;
  font: inherit; font-size: 14px; cursor: pointer;
}
.pager button.on { background: var(--blue, #1c73d7); border-color: var(--blue, #1c73d7); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }

/* 게시글 상세 (view.html) */
.post-view { padding-top: 40px; }
.pv-head { padding-bottom: 16px; border-bottom: 1px solid #363636; }
.pv-head h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.4; font-weight: 700; color: #000; }
.pv-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(54, 54, 54, .65); }
.pv-body { min-height: 120px; padding: 34px 6px; border-bottom: 1px solid rgba(54, 54, 54, .15); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.pv-body img { max-width: 100%; height: auto; }
.pv-files { padding: 16px 6px; border-bottom: 1px solid rgba(54, 54, 54, .15); font-size: 14px; }
.pv-files strong { margin-right: 14px; }
.pv-files a { display: inline-block; margin-right: 14px; color: var(--blue, #1c73d7); text-decoration: underline; }
.pv-like { display: flex; justify-content: center; margin: 28px 0; }
.pv-like button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 24px;
  border: 1px solid rgba(0, 0, 0, .15); border-radius: 30px; background: #fff; font: inherit; font-size: 14px; cursor: pointer;
}
.pv-like button.on { border-color: var(--blue, #1c73d7); color: var(--blue, #1c73d7); }
.pv-nav { border-top: 1px solid #363636; }
.pv-nav > div { display: flex; gap: 20px; padding: 12px 8px; border-bottom: 1px solid rgba(54, 54, 54, .15); font-size: 14px; }
.pv-nav b { width: 54px; font-weight: 400; color: rgba(54, 54, 54, .65); }
.pv-nav a:hover { color: var(--blue, #1c73d7); }
.post-view .li_footer { margin-top: 28px; }

/* 상단 대메뉴(다파소개 등): 클릭 이동 없이 마우스를 올리면(hover) 하위 메뉴만 열린다 */
.gnb-link { cursor: default; }
.gnb-item:has(> .gnb-link:focus-visible) > .sub { opacity: 1; visibility: visible; }  /* 키보드 Tab 이동 시에만 열림 (마우스 클릭으로는 열린 채 남지 않음) */

/* ---------- 게시글 상세 아래쪽: 좋아요 / 댓글 / 이전·다음 글 / 버튼 (원본 사이트 치수) ---------- */
.pv-body { border-bottom: 0; }
.pv-body p:has(> img:only-child) { text-align: center; }   /* 본문 이미지는 가운데 정렬 (원본과 동일) */
.pv-heart-row { margin-top: 33px; }
.pv-heart { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; color: #363636; font: inherit; }
.pv-heart svg { fill: none; stroke: #363636; stroke-width: 1.6; stroke-linejoin: round; }
.pv-heart em { font-style: normal; font-weight: 700; font-size: 17px; line-height: 20px; }
.pv-heart.on svg { fill: var(--blue, #1c73d7); stroke: var(--blue, #1c73d7); }

.pv-cmt { margin-top: 53px; }
.pv-cbox { display: flex; flex-direction: column; padding: 16px; border: 1px solid rgba(128, 128, 128, .2); border-radius: 3px; }
.pv-cbox textarea {
  display: block; width: 100%; height: 62px; margin: 0 0 12px; padding: 0;
  border: 0; outline: 0; resize: none; background: transparent;
  font: inherit; font-size: 16px; line-height: 1.5; color: #363636;
}
.pv-cbox textarea::placeholder { color: #777; }
.pv-cbox textarea[readonly] { cursor: pointer; }
.pv-cbox .btn { align-self: flex-end; padding: 6px 35px; line-height: 18px; }

.pv-clist { margin: 14px 0 0; padding: 0; list-style: none; }
.pv-clist li { padding: 14px 4px; border-bottom: 1px solid rgba(128, 128, 128, .2); }
.pv-cmeta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #757575; }
.pv-cmeta b { font-size: 14px; color: #212121; }
.pv-cdel { margin-left: auto; padding: 0; border: 0; background: none; color: #999; font: inherit; font-size: 12px; cursor: pointer; }
.pv-cdel:hover { color: #d33; }
.pv-ctext { margin-top: 6px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: #363636; }

.pv-tap { margin-top: 32px; }
.pv-trow { display: flex; align-items: center; padding: 10px 12px; border: 1px solid rgba(128, 128, 128, .2); font-size: 14px; color: #363636; }
.pv-trow + .pv-trow { margin-top: -1px; }
.pv-trow:hover span { color: var(--blue, #1c73d7); }
.pv-chev { position: relative; flex: 0 0 44px; align-self: stretch; }
.pv-chev::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 9px; height: 9px;
  border-top: 1px solid #6b5a52; border-left: 1px solid #6b5a52;
}
.pv-chev.up::before { transform: translate(-50%, -25%) rotate(45deg); }
.pv-chev.down::before { transform: translate(-50%, -75%) rotate(225deg); }
.pv-btns { display: flex; justify-content: space-between; margin-top: 12px; }
.pv-btns .btn { padding: 6px 35px; line-height: 18px; }

/* 게시글 상세: 버튼과 푸터 사이 여백 (원본 93px) */
.pview .page-tail { height: 50px; }
@media (min-width: 992px) { .pview .page-tail { height: 93px; } }

/* 온라인상담 글쓰기 팝업 */
.wr-pop { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wr-box { width: 100%; max-width: 560px; max-height: 100%; overflow: auto; background: #fff; padding: 28px 28px 24px; box-sizing: border-box; }
.wr-box h3 { margin: 0 0 18px; font-size: 20px; font-weight: 700; text-align: center; }
.wr-title, .wr-body { display: block; width: 100%; box-sizing: border-box; border: 1px solid #e3e3e3; padding: 11px 14px; font: inherit; font-size: 15px; color: #212121; border-radius: 0; }
.wr-title { height: 46px; margin-bottom: 10px; }
.wr-body { resize: vertical; min-height: 200px; line-height: 1.6; }
.wr-title:focus, .wr-body:focus { outline: 2px solid var(--blue, #1c73d7); outline-offset: -2px; }
.wr-msg { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: #e03e3e; }
.wr-btns { display: flex; gap: 8px; margin-top: 8px; }
.wr-btns button { flex: 1; height: 46px; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: #eee; color: #333; }
.wr-btns .wr-ok { background: var(--blue, #1c73d7); color: #fff; }
.wr-btns button:disabled { opacity: .6; cursor: default; }

/* 온라인상담 글쓰기 = 지원자 등록과 같은 입력 칸 */
.wr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.wr-fld { min-width: 0; }
.wr-fld.wr-full { grid-column: 1 / -1; }
.wr-fld > label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #444; }
.wr-in { display: block; width: 100%; height: 42px; box-sizing: border-box; border: 1px solid #e3e3e3; padding: 0 12px; font: inherit; font-size: 15px; color: #212121; border-radius: 0; background: #fff; }
.wr-in:focus { outline: 2px solid var(--blue, #1c73d7); outline-offset: -2px; }
.wr-tel { display: flex; align-items: center; gap: 6px; }
.wr-tel .wr-in { width: 76px; text-align: center; padding: 0 6px; }
.wr-radio { display: flex; align-items: center; gap: 18px; height: 42px; font-size: 15px; }
.wr-radio label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; cursor: pointer; }
@media (max-width: 520px) { .wr-grid { grid-template-columns: 1fr; } }
.wr-text { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
/* 온라인상담 목록: 답변완료 표시 / 상세: 수정·삭제 */
.li_body .tit .cmt-done { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #e6f4ea; color: #1e8e3e; font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.6; vertical-align: middle; }
.pv-btns .pv-del { background: #f1f1f1; color: #555; }
.pv-btns .pv-right { display: flex; gap: 8px; }   /* 수정·삭제·글쓰기를 오른쪽에 붙여 배치 */
