/* ========================================================
   게시판 상단 (총 건수 + 검색)
======================================================== */
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.board-total {
  font-size: 14px;
  color: #555;
}
.board-total strong {
  color: #18045d;
  font-weight: 700;
}

/* 검색 영역 */
.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #dde0ec;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  background: #fff;
  cursor: pointer;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #dde0ec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.search-input {
  height: 38px;
  padding: 0 12px;
  border: none;
  outline: none;
  font-size: 13px;
  color: #333;
  width: 200px;
}
.search-btn {
  width: 38px;
  height: 38px;
  background: #18045d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  transition: background 0.15s;
}
.search-btn:hover {
  background: #0e296e;
}
/* ========================================================
   게시판 테이블 (데스크탑)
======================================================== */
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-top: 2px solid #18045d;
  margin-bottom: 0;
}
.board-table thead th {
  padding: 13px 10px;
  background: #f7f8fc;
  color: #555;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #e7e7e7;
  font-size: 13px;
}
.board-table tbody tr {
  border-bottom: 1px solid #f0f0f5;
  transition: background 0.12s;
}
.board-table tbody tr:hover {
  background: #f7f8fc;
}

/* 공지 행 */
.board-table tbody tr.notice-row {
  background: #f7f8ff;
}
.board-table tbody tr.notice-row:hover {
  background: #eeeffa;
}

.td-num {
  text-align: center;
  color: #aaa;
  padding: 13px 10px;
}
.td-title {
  padding: 13px 10px;
}
.td-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #222;
  font-size: 14px;
  transition: color 0.15s;
}
.td-title a:hover {
  color: #18045d;
  font-weight: 600;
}
.td-author {
  text-align: center;
  color: #777;
  padding: 13px 10px;
}
.td-date {
  text-align: center;
  color: #888;
  padding: 13px 10px;
  font-size: 13px;
}
.td-view {
  text-align: center;
  color: #aaa;
  padding: 13px 10px;
  font-size: 13px;
}

/* 공지 뱃지 */
.badge-notice {
  display: inline-block;
  padding: 2px 8px;
  background: #18045d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0;
  white-space: nowrap;
}
.badge-category {
  display: inline-block;
  padding: 2px 8px;
  background: #f0eefa;
  color: #18045d;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* NEW 아이콘 */
.new-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
}

/* 첨부파일 아이콘 */
.attach-icon {
  display: inline-flex;
  align-items: center;
  color: #aaa;
  margin-left: 4px;
  vertical-align: middle;
}

/* ========================================================
   페이지네이션
======================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.pag-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde0ec;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}
.pag-btn:hover:not(:disabled) {
  border-color: #18045d;
  color: #18045d;
}
.pag-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pag-numbers {
  display: flex;
  gap: 4px;
}
.pag-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde0ec;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.15s;
}
.pag-num:hover {
  border-color: #18045d;
  color: #18045d;
}
.pag-num.active {
  background: #18045d;
  border-color: #18045d;
  color: #fff;
  font-weight: 700;
}

/*페이지 작은버전*/
.pagination-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 20px;
}
.pagination-sm .pag-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde0ec;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}
.pagination-sm .pag-btn:hover:not(:disabled) {
  border-color: #18045d;
  color: #18045d;
}
.pagination-sm .pag-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination-sm .pag-numbers {
  display: flex;
  gap: 3px;
}
.pagination-sm .pag-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde0ec;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #555;
  transition: all 0.15s;
}
.pagination-sm .pag-num:hover {
  border-color: #18045d;
  color: #18045d;
}
.pagination-sm .pag-num.active {
  background: #18045d;
  border-color: #18045d;
  color: #fff;
  font-weight: 700;
}
/* ========================================================
   게시글 뷰 페이지
======================================================== */
.view-wrap {
  border-top: 2px solid #18045d;
}

/* 뷰 헤더 */
.view-head {
  padding: 20px 4px 16px;
  border-bottom: 1px solid #e7e7e7;
}
.view-head-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  margin-left: 15px;
}
.view-title {
  font-size: 20px;
  color: #111;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
.view-sub {
  font-size: 13px;
  color: #777;
  font-weight: 400;
}
/* 뷰 메타 (작성자 / 날짜 / 조회) */
.view-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 15px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
}
.meta-label {
  color: #bbb;
}
.meta-value {
  color: #555;
  font-weight: 500;
}
.meta-divider {
  width: 1px;
  height: 12px;
  background: #e0e0e0;
}
/*뷰페이지 태그*/
.view-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view-tags span {
  font-size: 12px;
  color: #18045d;
  background: #f1f3ff;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
}
/* 첨부파일 */
.view-attach {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f0f0f5;
  background: #f9fafc;
  border-radius: 0;
}
.attach-label {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 2px;
  margin-left: 15px;
}
.attach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.attach-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #18045d;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.attach-file:hover {
  color: #0e296e;
}
.attach-size {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
}

/* 뷰 본문 */
.view-body {
  padding: 30px 4px 40px;
  font-size: 15px;
  color: #333;
  line-height: 1.9;
  border-bottom: 1px solid #e7e7e7;
  min-height: 200px;
}
.view-body img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 20px auto;
}
/* 이전글 / 다음글 */
.view-nav {
  border-bottom: 1px solid #e7e7e7;
}
.view-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-top: 1px solid #f0f0f5;
  font-size: 14px;
}
.nav-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #aaa;
  font-size: 13px;
  flex-shrink: 0;
  width: 60px;
}
.nav-title {
  flex: 1;
  color: #333;
  transition: color 0.15s;
}
.nav-title:hover {
  color: #18045d;
}
.nav-date {
  color: #bbb;
  font-size: 13px;
  flex-shrink: 0;
}

/* 하단 버튼 */
.view-btn-area {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
}
.btn-list {
  background: #f0eefa;
  color: #18045d;
}
.btn-list:hover {
  background: #18045d;
  color: #fff;
}
/* ========================================================
   커뮤니티 글쓰기
======================================================== */
/*커뮤니티만 상단다름*/
.board-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-left: 24px;
  position: relative;
}

/* 좌측 포인트 라인 */
.board-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 55px;
  border-radius: 999px;

  background: linear-gradient(to bottom, #185fa5 0%, #3b5cb8 50%, #6a63b8 100%);
}
.board-header-left h2 {
  margin-bottom: 5px;
  font-size: 26px;
  letter-spacing: -1px;
  color: #102a43;
}
.board-header-left p {
  font-size: 14px;
  line-height: 1.7;
  color: #667085;
}

/* 글쓰기 버튼 */
.btn-write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #18045d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-write:hover {
  background: #2a0a8a;
}
/* ========================================================
   커뮤니티 뷰페이지
======================================================== */
/* 댓글 수 */
.reply-count {
  color: #18045d;
  font-size: 13px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}
.meta-nickname {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #18045d;
}

.meta-nickname img {
  width: 16px;
  height: 16px;
}
/* 좋아요/공유 */
.view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0px;
  border-top: 1px solid #f0f0f0;
}

.btn-like,
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  height: 30px;
}

.btn-like:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}
.btn-like.liked {
  background: #fff0f0;
  border-color: #e74c3c;
  color: #e74c3c;
}
.btn-like:hover .icon-actions {
  content: url("/image/home/ic_like.png");
}
.btn-share:hover {
  border-color: #f0c080;
  color: #e67e22;
}
.btn-share:hover .icon-actions {
  content: url("/image/home/ic_report.png");
}

.btn-like img,
.btn-share img {
  width: 15px;
  height: 15px;
}

/* 작성자 메뉴 (수정/삭제) */
.view-owner-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.btn-com-edit,
.btn-com-delete {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  transition: all 0.15s;
}

.btn-com-delete {
  border-color: #eec;
  color: #c55;
}
.btn-com-delete:hover {
  background: #fff0f0;
  border-color: #e74c3c;
  color: #e74c3c;
}
.btn-com-edit:hover {
  border-color: #18045d;
  color: #18045d;
}

/* 댓글 영역 */
.comment-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 700;
  color: #18045d;
}

.comment-count-badge {
  background: #18045d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* 댓글 입력 */
.comment-input-area {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #faf9ff;
}

.comment-input-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-nickname-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0edf8;
  border: 1px solid #c8bfea;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  color: #18045d;
  font-weight: 600;
}

.comment-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.comment-textarea {
  flex: 1;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
  line-height: 1.6;
}

.comment-textarea:focus {
  border-color: #18045d;
}

.btn-comment-submit {
  height: 80px;
  width: 80px;
  background: #18045d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  align-self: center;
}

.btn-comment-submit:hover {
  background: #2a0a8a;
}

/* 댓글 목록 */
.comment-list {
  padding: 0 24px;
}

.comment-item {
  padding: 18px 0;
  border-bottom: 1px solid #f5f5f5;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-item-nickname {
  font-size: 13px;
  font-weight: 700;
  color: #18045d;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 작성자 본인 */
.author-tag {
  font-size: 10px;
  background: #18045d;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.comment-item-date {
  font-size: 12px;
  color: #bbb;
}

.comment-item-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-comment-action {
  font-size: 12px;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.12s;
}

.btn-comment-action:hover {
  color: #555;
}
.btn-comment-action.del:hover {
  color: #e74c3c;
}
.btn-comment-action.report:hover {
  color: #e67e22;
}

.btn-comment-action + .btn-comment-action {
  padding-left: 8px;
  border-left: 1px solid #eee;
}

/* 댓글 답글달기 버튼 */
.btn-reply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #18045d;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 6px;
  opacity: 0.7;
  transition: opacity 0.12s;
}

.btn-reply:hover {
  opacity: 1;
}
.btn-reply img {
  width: 16px;
  height: 16px;
  align-items: center;
}

.comment-item-text {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── 대댓글 ───────────────────────── */
.reply-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reply-item {
  display: flex;
  gap: 10px;
  padding: 12px 0 12px 4px;
  border-top: 1px solid #f5f5f5;
}

.reply-arrow {
  flex-shrink: 0;
  color: #ccc;
}

.reply-arrow img {
  width: 16px;
  height: 16px;
}

.reply-body {
  flex: 1;
  min-width: 0;
}

.reply-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.reply-nickname {
  font-size: 13px;
  font-weight: 700;
  color: #18045d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reply-date {
  font-size: 12px;
  color: #bbb;
}

.reply-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.reply-text {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 대댓글 입력창 */
.reply-input-box {
  display: none;
  margin-top: 10px;
  background: #f5f3ff;
  border: 1px solid #dcd5f5;
  border-radius: 8px;
  padding: 12px 14px;
}

.reply-input-box.show {
  display: block;
}

.reply-input-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #888;
}

.reply-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.reply-textarea {
  flex: 1;
  height: 64px;
  border: 1px solid #c8bfea;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
  outline: none;
  line-height: 1.6;
  background: #fff;
  transition: border-color 0.15s;
}

.reply-textarea:focus {
  border-color: #18045d;
}

.btn-reply-submit {
  height: 64px;
  width: 60px;
  background: #18045d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-reply-cancel {
  font-size: 12px;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  display: block;
}

/* ── 신고 모달 ───────────────────────── */
.report-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.report-overlay.show {
  display: flex;
}

.report-modal {
  background: #fff;
  border-radius: 12px;
  width: 360px;
  max-width: 90vw;
  padding: 28px 24px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.report-modal h4 {
  font-size: 16px;
  font-weight: 700;
  color: #18045d;
  margin-bottom: 6px;
}

.report-modal p {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.report-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.report-option input {
  accent-color: #18045d;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.report-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-report-cancel {
  height: 36px;
  padding: 0 16px;
  background: #f1f1f1;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.btn-report-submit {
  height: 36px;
  padding: 0 16px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
/* ========================================================
   커뮤니티 글쓰기
======================================================== */
/* 익명 안내 */
.anon-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #7a5c00;
  margin-bottom: 16px;
  line-height: 1.6;
}

.anon-notice img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #d4a000;
}

/* 작성 폼 카드 */
.write-card {
  border-top: 1px solid #f0f0f0;
}

/* 폼 행 */
.write-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  min-height: 52px;
}

/*.write-row:last-of-type {
  border-bottom: none;
}*/

.write-label {
  width: 110px;
  flex-shrink: 0;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #18045d;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.write-label.required::after {
  content: " *";
  color: #e74c3c;
}

.write-field {
  flex: 1;
  padding: 10px 16px;
}

/* 대화명 안내 */
.nickname-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nickname-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0edf8;
  border: 1px solid #c8bfea;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: #18045d;
  font-weight: 600;
}

.nickname-change {
  font-size: 12px;
  color: #18045d;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nickname-change:hover {
  color: #2a0a8a;
}

/* 대화명 변경 input (평소엔 숨김) */
.nickname-input-wrap {
  display: none;
  align-items: center;
  gap: 8px;
}

.nickname-input-wrap.show {
  display: flex;
}

.nickname-input {
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  width: 140px;
}

.nickname-input:focus {
  border-color: #18045d;
}

.btn-nickname-save {
  height: 30px;
  padding: 0 12px;
  background: #18045d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
/* 제목 */
.write-input {
  width: 100%;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.write-input:focus {
  border-color: #18045d;
  box-shadow: 0 0 0 3px rgba(24, 4, 93, 0.07);
}

/* 내용 textarea */
.write-textarea {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 0;
  padding: 16px;
  font-size: 14px;
  color: #333;
  resize: vertical;
  outline: none;
  line-height: 1.8;
}

/* 파일첨부 */
.file-attach-area {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.file-attach-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.file-title {
  font-size: 13px;
  font-weight: 600;
  color: #18045d;
}

.file-optional {
  font-size: 12px;
  color: #aaa;
}

.file-input {
  display: none;
}

.file-list {
  margin-top: 6px;
}

.btn-file-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.file-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

/* 하단 버튼 */
.write-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-write-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 22px;
  background: #f1f1f1;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.btn-write-submit {
  height: 42px;
  padding: 0 22px;
  background: #18045d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-write-submit:hover {
  background: #2a0a8a;
}
/* ========================================================
   포토 게시판 그리드
======================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.photo-item a {
  display: block;
  text-decoration: none;
}

/* 썸네일 */
.photo-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* 추가 */
  overflow: hidden;
  border-radius: 10px;
  background: #eef0f5;
}

.photo-thumb img {
  width: 100%; /* 추가 */
  height: 100%; /* 추가 */
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.photo-overlay img {
  width: 28px;
  height: 28px;
}
.photo-item:hover .photo-thumb img {
  transform: scale(1.02);
}
.search-btn img {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
/* 호버 오버레이 */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 4, 93, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 10px;
}
.photo-item:hover .photo-overlay {
  opacity: 1;
}

/* 포토 정보 */
.photo-info {
  padding: 10px 2px 4px;
}
.photo-title {
  font-size: 14px;
  color: #222;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  /* 고정 높이 (2줄 × line-height) */
  min-height: calc(1.4em * 2);
}

.photo-item:hover .photo-title {
  color: #18045d;
}
.photo-date {
  font-size: 12px;
  color: #bbb;
}

/* ========================================================
   포토 뷰 페이지
======================================================== */

/* 대표 이미지 */
.photo-view-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f5;
  margin: 24px 0;
  aspect-ratio: 16 / 9;
}
.photo-view-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

/* 갤러리 섹션 */
.photo-view-gallery {
  margin: 8px 0 32px;
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gallery-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.gallery-count {
  font-size: 13px;
  color: #aaa;
}

/* 썸네일 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery-item {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.65;
}
.gallery-item:hover {
  opacity: 1;
}
.gallery-item.active {
  border-color: #18045d;
  opacity: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ========================================================
   월간海바라기 그리드 리스트
======================================================== */
.haebaragi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 25px 0 32px;
}

.haebaragi-item a {
  display: block;
  text-decoration: none;
}

/* 표지 썸네일 */
.haebaragi-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* 잡지 표지 비율 */
  overflow: hidden;
  border-radius: 8px;
  background: #eef0f5;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s;
}
.haebaragi-item:hover .haebaragi-thumb {
  box-shadow: 6px 8px 24px rgba(0, 0, 0, 0.22);
}

.haebaragi-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.haebaragi-item:hover .haebaragi-thumb > img {
  transform: scale(1.02);
}

/* 호버 오버레이 */
.haebaragi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 4, 93, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px;
}
.haebaragi-item:hover .haebaragi-overlay {
  opacity: 1;
}

/* 하단 정보 */
.haebaragi-info {
  padding: 12px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* 호수 */
.haebaragi-vol {
  font-size: 11px;
  color: #18045d;
  font-weight: 700;
  background: #f0eefa;
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  width: fit-content;
}

/* 타이틀 (연도 + 월호) */
.haebaragi-title {
  font-size: 15px;
  color: #111;
  font-weight: 700;
  letter-spacing: -0.3px;
  transition: color 0.15s;
}
.haebaragi-item:hover .haebaragi-title {
  color: #18045d;
}

/* 날짜 */
.haebaragi-date {
  font-size: 12px;
  color: #bbb;
}
/* ========================================================
   월간海바라기 뷰 – 2열 레이아웃
======================================================== */
.magazine-view-body {
  display: flex;
  gap: 40px;
  padding: 28px 0 36px;
  border-bottom: 1px solid #e7e7e7;
  align-items: flex-start;
}

/* 좌측: 표지 이미지 */
.magazine-view-cover {
  flex: 0 0 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.magazine-view-cover img {
  width: 100%;
  display: block;
}

/* 우측: 목차 + 첨부 */
.magazine-view-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 목차 타이틀 공통 */
.magazine-toc-title {
  font-size: 15px;
  font-weight: 700;
  color: #18045d;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eceef5;
  display: flex;
  align-items: center;
  gap: 7px;
}
.magazine-toc-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #18045d;
  border-radius: 2px;
}

/* 목차 리스트 */
.magazine-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.magazine-toc-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #f0f0f5;
}
.magazine-toc-list li:last-child {
  border-bottom: none;
}

/* 페이지 번호 */
.toc-page {
  font-size: 12px;
  color: #18045d;
  font-weight: 700;
  flex-shrink: 0;
  width: 24px;
  text-align: right;
}

/* 목차 텍스트 */
.toc-text {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* 첨부파일 영역 */
.magazine-attach-wrap {
  padding-top: 20px;
  border-top: 1px solid #f0f0f5;
}

/* ========================================================
   매거진형 리스트 (해기사 직역소개)
======================================================== */
.magazine-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid #18045d;
}

.magazine-item {
  border-bottom: 1px solid #f0f0f5;
  transition: background 0.15s;
}
.magazine-item:hover {
  background: #f7f8fc;
}

.magazine-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 15px;
  gap: 16px;
  text-decoration: none;
}

/* 콘텐츠 영역 */
.magazine-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 카테고리 (직역명 / 월호) */
.magazine-category {
  font-size: 14px;
  font-weight: 700;
  color: #18045d;
  background: #f0eefa;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  width: fit-content;
}

/* 제목 */
.magazine-title {
  font-size: 17px;
  color: #111;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.4;
  transition: color 0.15s;
}
.magazine-item:hover .magazine-title {
  color: #18045d;
}

/* 설명 */
.magazine-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  overflow: hidden;
}

/* 하단 메타 (태그 / 날짜 / 첨부) */
.magazine-date {
  font-size: 13px;
  color: #bbb;
}
.magazine-attach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #18045d;
  font-weight: 600;
}

/* 화살표 */
.magazine-arrow img {
  transition: filter 0.15s;
  filter: brightness(0) saturate(100%) invert(80%); /* 기본 회색 */
}
.magazine-item:hover .magazine-arrow img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(90%) saturate(3000%)
    hue-rotate(240deg); /* #18045d */
  transform: translateX(3px);
}

/*기업홍보관*/
.company-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-item a {
  display: block;
  text-decoration: none;
}

/* 썸네일 */
.company-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #eef0f5;
}

.company-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.company-item:hover .company-thumb img {
  transform: scale(1.03);
}

.company-overlay img {
  width: 28px;
  height: 28px;
}

/* 오버레이 */
.company-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 4, 93, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 10px;
}

.company-item:hover .company-overlay {
  opacity: 1;
}

/* 정보 영역 */
.company-info {
  padding: 10px 2px 6px;
}

.company-name {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.company-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;

  /* 1줄 제한 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 태그 */
.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.company-tags span {
  font-size: 11px;
  color: #18045d;
  background: #f1f3ff;
  padding: 3px 6px;
  border-radius: 4px;
}
/* ========================================================
   선사정보
======================================================== */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ship-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  transition: all 0.2s ease;
}

/* hover 느낌 (기존 톤 유지) */
.ship-card:hover {
  border-color: #18045d;
  box-shadow: 0 6px 16px rgba(24, 4, 93, 0.08);
  transform: translateY(-2px);
}

/* 선사명 */
.ship-name {
  font-size: 16px;
  font-weight: 600;
  color: #18045d;
  margin-bottom: 10px;
}
.ship-info p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.4;
}
.ship-icon {
  width: 14px;
  height: 14px;
  fill: #18045d;
  flex-shrink: 0;
}

/* ========================================================
   검색이력관리
======================================================== */
/* 안내 */
.hs-notice {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid #edf0f5;
  background: #f8f9fc;
}
.hs-notice-title {
  font-size: 15px;
  font-weight: 700;
  color: #18045d;
  margin-bottom: 10px;
}
.hs-notice ul {
  padding-left: 5px;
}
.hs-notice li {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}
.hs-clear-btn {
  height: 30px;
  padding: 0 15px;
  border: 1px solid #777;
  border-radius: 10px;
  background: #f4f6fb;
  color: #18045d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.hs-clear-btn:hover {
  color: #fff;
  background: #1a4fa0;
}
/* 안내 */
.info-notice {
  background: #f5f6fa;
  border-left: 4px solid #1a4fa0;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

/* 상단 액션 */
.list-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.list-count {
  font-size: 13px;
  color: #888;
}
.list-count strong {
  color: #e8000d;
  font-weight: 700;
}
.btn-del-all {
  font-size: 12px;
  font-weight: 600;
  color: #e8000d;
  border: 1px solid #ffcccc;
  border-radius: 6px;
  padding: 6px 14px;
  background: #fff8f8;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-del-all:hover {
  background: #ffeeee;
}
/*첨부파일관리*/
.info-notice strong {
  color: #18045d;
  font-weight: 700;
}

/* 태그 묶음 */
.file-notice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* 개별 태그 */
.file-notice-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  background: #f4f6fa;
  color: #444;
  font-size: 12px;
  font-weight: 700;
}

/* 아이콘 */
.file-notice-tag img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}
/* ════════════════════════════════════════
       ① 현재 등록된 이력서
    ════════════════════════════════════════ */
.resume-section {
  margin-bottom: 40px;
}
.resume-upload-box {
  margin-top: 15px;
  border: 2px dashed #e2e5ee;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: #f5f6fa;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  margin-bottom: 16px;
}
.resume-upload-box:hover {
  border-color: #1a4fa0;
  background: #f0f4ff;
}
.resume-upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a4fa0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.resume-upload-icon img {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}
.resume-upload-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}
.resume-upload-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
.resume-upload-desc span {
  color: #1a4fa0;
  font-weight: 600;
}
.resume-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 24px;
  background: #1a4fa0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.resume-upload-btn:hover {
  background: #18045d;
}
.resume-upload-btn img {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* 등록된 파일 카드 */
.resume-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resume-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #e2e5ee;
  border-radius: #888;
  background: #fff;
  transition: box-shadow 0.2s;
}
.resume-file-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.resume-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
}
.icon-pdf {
  background: #fde8e8;
  color: #e8000d;
}
.icon-word {
  background: #e8eeff;
  color: #1a4fa0;
}
.icon-hwp {
  background: #e8f5e9;
  color: #00a651;
}

.resume-file-body {
  flex: 1;
  min-width: 0;
}
.resume-file-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.resume-file-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #888;
  flex-wrap: wrap;
}
.resume-file-meta img {
  width: 11px;
  height: 11px;
}
.resume-file-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 만료 D-day */
.expire-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.expire-badge-safe {
  background: #e8f5e9;
  color: #00a651;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.expire-badge-warn {
  background: #fff8e1;
  color: #e07000;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.expire-badge-danger {
  background: #fde8e8;
  color: #e8000d;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.resume-file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-sm svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.btn-sm-default {
  background: #f5f6fa;
  border: 1px solid #e2e5ee;
  color: #555;
}
.btn-sm-default:hover {
  border-color: #1a4fa0;
  color: #1a4fa0;
}
.btn-sm-danger {
  background: #fff8f8;
  border: 1px solid #ffcccc;
  color: #e8000d;
}
.btn-sm-danger:hover {
  background: #fde8e8;
}
.btn-sm-primary {
  background: #1a4fa0;
  border: 1px solid #1a4fa0;
  color: #fff;
}
.btn-sm-primary:hover {
  background: #18045d;
}

/* 자동 삭제 안내 */
.auto-delete-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: #e07000;
  background: #fff8e1;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 14px;
}
.txt {
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #e2e5ee;
  text-align: center;
  vertical-align: middle;
}
.td-left {
  text-align: left;
}
.submit-table tr:hover td {
  background: #f9faff;
}

/* 상태 뱃지 */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
}
.status-sent {
  background: #e8f5e9;
  color: #00a651;
}
.status-read {
  background: #eef3ff;
  color: #1a4fa0;
}
.status-expired {
  background: #f5f5f5;
  color: #aaa;
}

/* 파일명 + 확장자 뱃지 */
.filename-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ext-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ext-pdf {
  background: #fde8e8;
  color: #e8000d;
}
.ext-word {
  background: #e8eeff;
  color: #1a4fa0;
}
.ext-hwp {
  background: #e8f5e9;
  color: #00a651;
}
/* ════════════════════════════════════════
       ③ 개인정보 보관 정책
    ════════════════════════════════════════ */
.policy-box {
  background: #f5f6fa;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e2e5ee;
}
.policy-title {
  font-size: 14px;
  font-weight: 800;
  color: #18045d;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.policy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}
.policy-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a4fa0;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ════════════════════════════════════════
       검색 박스 전체 래퍼
    ════════════════════════════════════════ */
.job-search-box {
  border-top: 1px solid #e2e5ee;
  overflow: hidden;
  margin-bottom: 24px;
}

/* ─── 기본 검색바 (항상 노출) ─── */
.job-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
}
.job-search-select {
  padding: 6px 12px;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  font-size: 13px;
  color: #444;
  background: #fff;
  outline: none;
  cursor: pointer;
  min-width: 80px;
}
.job-search-input {
  flex: 1;
  padding: 7px 14px;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  outline: none;
}
.job-search-input:focus {
  border-color: #1a4fa0;
}
.job-search-date {
  padding: 6px 12px;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  font-size: 13px;
  color: #444;
  outline: none;
  width: 130px;
}
.job-search-sep {
  color: #888;
  flex-shrink: 0;
}
.job-search-btn {
  padding: 9px 24px;
  background: #18045d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.job-search-btn:hover {
  background: #1a4fa0;
}

.job-search-detail {
  display: none;
}
.job-search-detail.active {
  display: block;
}
/* ════════════════════════════════════════
       검색 박스 전체 일반
════════════════════════════════════════ */
.job-search-common {
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* ─── 기본 검색바 (항상 노출) ─── */
.job-common {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
}

/* ─── 검색조건 토글 버튼 ─── */
.job-search-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f5f6fa;
  border-top: 1px solid #e2e5ee;
  border-bottom: 1px solid #e2e5ee;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.job-search-toggle:hover {
  background: #eceef5;
}
.job-search-toggle-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a4fa0;
}
.job-search-toggle-icon img {
  width: 14px;
  height: 14px;
  stroke: #1a4fa0;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s;
}
.job-search-toggle-label {
  font-size: 12px;
  font-weight: 700;
  color: #1a4fa0;
}
.job-search-toggle-reset {
  margin-left: 8px;
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border: 1px solid #e2e5ee;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: 0.15s;
}
.job-search-toggle-reset:hover {
  border-color: 6px;
  color: 6px;
}
.job-search-toggle-reset img {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}
/* 토글 화살표 방향 */
.job-search-box.open .job-search-toggle-icon img {
  transform: rotate(180deg);
}

/* ─── 상세 검색 조건 (접기/펼치기) ─── */
.job-search-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  background: #fff;
  border-top: none;
}
.job-search-box.open .job-search-detail {
  max-height: 700px;
}
.job-search-detail_inner {
  padding: 20px 16px 0;
}

/* 필터 그리드: 5~6열 */
.job-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
}
.job-filter-col {
  border-right: 1px solid #e2e5ee;
  display: flex;
  flex-direction: column;
}
.job-filter-col:last-child {
  border-right: none;
}
.job-filter-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  background: #f5f6fa;
  border-bottom: 1px solid #e2e5ee;
}
.job-filter-col-head.line {
  border-top: 1px solid #e2e5ee;
}
.job-filter-col-head img {
  width: 12px;
  height: 12px;
  stroke: #888;
  fill: none;
  stroke-width: 2;
}
.job-filter-col-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.job-filter-chk {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  line-height: 1.3;
}
.job-filter-chk input[type="checkbox"] {
  flex-shrink: 0;
}
.job-filter-chk:hover {
  color: #1a4fa0;
}
/*통합검색*/
.job-search-action {
  text-align: center;
  margin-bottom: 10px;
}
.job-search-submit {
  padding: 12px 35px;
  border: 0;
  border-radius: 14px;
  background: #f8fafc;
  /*background: #eef4ff;*/
  border: 1px solid #dbe3f0;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.job-search-submit:hover {
  border-color: #7ea1ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.job-search-submit:active {
  transform: translateY(0);
}

/* 승선경력 별도 행 */
.job-filter-grid-row2 {
  grid-template-columns: repeat(5, 1fr);
  margin-top: -1px;
}
.job-filter-col-wide {
  grid-column: span 4;
}

/* 조건검색 버튼 */
.job-search-detail-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 0 16px;
}
.job-btn-condition {
  padding: 10px 32px;
  background: #18045d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.job-btn-condition:hover {
  background: #1a4fa0;
}
/* ════════════════════════════════════════
       채용공고 리스트
    ════════════════════════════════════════ */
.job-result-header {
  display: flex;
  /*align-items: center;*/
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.job-result-count {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.job-result-count em {
  color: #1b61bf;
  font-style: normal;
}
.job-result-sort select {
  padding: 6px 10px;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  font-size: 13px;
  color: #444;
  outline: none;
  cursor: pointer;
}

/* 채용 리스트 아이템 */
.job-sub-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-sub-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #fff;
}
.job-sub-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-color: #1a4fa0;
}
.job-sub-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

/* 왼쪽: 회사명 + 기업정보 뱃지 */
.job-sub-item__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 200px;
  flex-shrink: 0;
}
.job-sub-company {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.job-sub-biz-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background: #1b61bf;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

/* 가운데: 제목 + 태그 */
.job-sub-body {
  flex: 1;
  min-width: 0;
}
.job-sub-title {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 5px;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.job-sub-item:hover .job-sub-title {
  color: #1a4fa0;
}
.job-sub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.job-sub-tag {
  font-size: 12px;
  color: #888;
}
.job-sub-tag + .job-sub-tag::before {
  content: "·";
  margin-right: 5px;
}

/* 오른쪽: 마감일 + 등록일 + 조회수 */
.job-sub-item__right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
}
.job-sub-deadline {
  font-size: 13px;
  font-weight: 700;
  color: #e8000d;
  white-space: nowrap;
  margin-bottom: 7px;
}
.job-sub-reg {
  font-size: 12px;
  color: #606f7a;
  white-space: nowrap;
}
.job-sub-view {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
.job-sub-apply {
  height: 42px;
  width: 90px;

  border: none;
  border-radius: 6px;
  background: #103995;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.15s;
  flex-shrink: 0;
}
.job-sub-apply:hover {
  background: #082c74;
}
.job-sub-site {
  background: #0f766e;
}
.job-sub-site:hover {
  background: #0a5b55;
}
.job-sub-email {
  background: #f59e0b;
}
.job-sub-email:hover {
  background: #d97706;
}
/* 기업정보모달 */
.biz-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.biz-modal.active {
  display: flex;
}
.biz-modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
/* 내용 */
.biz-modal__content {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
}
/* 닫기 */
.biz-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f3f5f9;
  font-size: 22px;
  cursor: pointer;
}
/* 상단 */
.biz-modal__top {
  padding: 35px 30px 20px;
  border-bottom: 1px solid #eef1f8;
  text-align: center;
}
.biz-modal__top img {
  height: 50px;
  object-fit: contain;
}
.biz-modal__top.biz-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
}
.biz-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  background: #e6f1fb;
  color: #0c447c;
  border: 0.5px solid #b5d4f4;
  border-radius: 9999px;
  padding: 3px 10px;
}
/* 바디 */
.biz-modal__body {
  padding: 25px 30px 30px;
}
.biz-modal__name {
  font-size: 24px;
  margin-bottom: 10px;
}
.biz-modal__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 10px;
}
.biz-modal__desc.biz-tags2 {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
}
.biz-tag2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  background: #f8f9fb;
  color: #4b5563;
  border: 0.5px solid #f3f4f6;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 25px;
}
/* 정보 */
.biz-modal__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.biz-modal__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f3f7;
}
.biz-modal__row span {
  color: #777;
}
.biz-modal__row strong {
  color: #111;
  text-align: right;
}
/* ════════════════════════════════════════
       채용공고 뷰페이지
    ════════════════════════════════════════ */
/* 로고 */
.job-view-logo {
  width: 160px;
  height: 100px;
  border: 1px solid #edf0f5;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-view-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
/* 상단 */
.job-view-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 25px;
  border: 3px solid #e2e5ee;
}

.job-view-top-left {
  flex: 1;
  min-width: 0;
}

.job-view-company {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.job-view-company-name {
  font-size: 18px;
  font-weight: 700;
  color: #103995;
}

.job-view-dday {
  padding: 4px 10px;
  border-radius: 30px;
  background: #fff1f1;
  color: #e8000d;
  font-size: 13px;
  font-weight: 700;
}

.job-view-title {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 20px;
}

/*배지공통*/
.job-view-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.jvt {
  padding: 3px 9px;
  border-radius: 30px;
  font-size: 12px;
  gap: 3px;
  font-weight: 600;
}
.jvt1 {
  padding: 3px 9px;
  border-radius: 30px;
  font-size: 12px;
  gap: 3px;
  font-weight: 500;
}

/*정규직*/
.tag-gm {
  background: #eaf3de;
  color: #27500a;
}
/*계약직*/
.tag-am {
  background: #faeeda;
  color: #633806;
}
/*단기승선*/
.tag-pp {
  background: #f3e8ff;
  color: #7c3aed;
}
/* 승선가능 */
.tag-gn {
  background: #eaf3de;
  color: #2d502c;
}
/* 승선경력없음 */
.tag-gnx {
  background: #f3f4f6;
  color: #6b7280;
}
/* 즉시승선가능 */
.tbg-im {
  background: #dcfce7;
  color: #166534;
}
/*육상희망*/
.tbg-am {
  background: #faeeda;
  color: #8f3806;
}
/*선종*/
.tag-bl {
  background: #e6f1fb;
  color: #0c447c;
}

/*항해사*/
.tag-lic-nav {
  background: #e6f1fb;
  color: #0c447c;
  border-color: #b5d4f4;
}
/*기관사*/
.tag-lic-eng {
  background: #efe0d2;
  color: #6b3410;
  border-color: #c89c76;
}

/* 해상직,육상직 */
.tag-sea {
  background: #185fa5;
  color: #fff;
}
.tag-land {
  background: #8b5e3c;
  color: #f5ede4;
}
/*급여*/
.tag-pay {
  background: #fff4d6;
  color: #8b5e00;
}
/*미등록*/
.amber {
  background: #faeeda;
  color: #633806;
  border: 1px solid #fac775;
  cursor: pointer;
}
.amber:hover {
  background: #fac775;
  color: #3d2000;
}

/* 핵심 정보 그리드 */
.key-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 16px;
  margin-right: 20px;
  border-top: 0.5px solid #f3f4f6;
}
.key-item {
  padding: 13px 8px 4px;
  border-right: 0.5px solid #f3f4f6;
}
.key-item:last-child {
  border-right: none;
}
.key-label {
  font-size: 12px;
  color: #3a3f46;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.key-val {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}
.key-val.warn {
  color: #dc2626;
}
.key-val.ok {
  color: #4e9a0e;
}

/* 오른쪽 */
.job-view-top-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* 스크랩 버튼 */
.job-view-scrap-btn {
  width: 100%;
  border: 1px solid #e2e5ee;
  border-radius: 12px;
  background: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.job-view-scrap-btn:hover {
  border-color: #103995;
  background: #f8fbff;
}

.job-view-scrap-btn img {
  width: 18px;
  height: 18px;
}

.job-view-scrap-btn span {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

/* 본문 */
.job-view-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
.job-view-content {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.job-view-section {
  margin-bottom: 40px;
}
.job-view-section:last-child {
  margin-bottom: 0;
}
.job-view-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.job-view-desc {
  border-top: 2px solid #111;
  padding: 15px;
  line-height: 1.8;
  color: #444;
  font-size: 14px;
}
/* 정보표 */
.job-view-table {
  border-top: 2px solid #111;
}
.job-view-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid #edf0f5;
}
.job-view-th {
  background: #f8f9fc;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
}
.job-view-td {
  padding: 15px;
  color: #444;
  font-size: 14px;
}
.job-view-td span + span::before {
  content: "|";
  margin: 0 10px;
  color: #cbd5e1;
}
/* 우측 */
.job-view-side {
  position: sticky;
  top: 20px;
  height: max-content;
}
.job-view-side-box {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.job-status.end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #dbe2ea;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.job-view-side-title {
  font-size: 20px;
  margin-bottom: 20px;
}
.job-view-side-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.job-view-side-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.job-view-side-row span {
  color: #777;
}
.job-view-side-row strong {
  color: #111;
}
.job-view-side-row .d-date {
  color: #002087;
}
.job-view-apply-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 10px;
  background: #103995;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.job-view-apply-btn:hover {
  background: #082c74;
}
.job-view-site {
  background: #0f766e;
}
.job-view-site:hover {
  background: #0a5b55;
}
.job-view-email {
  background: #f59e0b;
}
.job-view-email:hover {
  background: #d97706;
}
.job-view-end {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 10px;
  background: #ededee;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.job-view-side-bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
  display: flex;
  justify-content: center;
}
.job-list-btn {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.job-list-btn img {
  width: 26px;
  height: 26px;
  transition: transform 0.15s ease;
}
.job-list-btn:hover img {
  transform: translateX(3px);
}
.job-list-btn:hover {
  background: #f8fafc;
  border-color: #002087;
  color: #002087;
}

/*오른쪽구인공고*/
.job-other-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.job-other-item {
  display: block;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.job-other-item:hover {
  border-color: #002087;
  box-shadow: 0 6px 18px rgba(0, 32, 135, 0.08);
}
.job-other-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.job-other-date {
  font-size: 12px;
  font-weight: 700;
  color: #e53935;
}
.job-other-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/*입사지원하기*/
/* 상단 */
.job-apply-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 25px;
  border: 3px solid #e2e5ee;
}
.job-apply-company {
  display: flex;
  align-items: center;
  gap: 20px;
}
.job-apply-company-logo {
  width: 160px;
  height: 100px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.job-apply-company-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.job-apply-company-name {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #103995;
  margin-bottom: 5px;
}
.job-apply-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}
.job-apply-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-apply-tags span {
  background: #eef2f8;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 13px;
}
.job-apply-dday {
  padding: 10px 18px;
  border-radius: 40px;
  background: #fff1f1;
  color: #e8000d;
  font-size: 18px;
  font-weight: 800;
}

/* 본문 */
.job-apply-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-apply-section {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 20px;
  padding: 30px;
}
.job-apply-section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
/* 폼 */
.job-apply-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.job-apply-form-item.full {
  grid-column: 1 / -1;
}

.job-apply-form-item label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.job-apply-form-item input {
  width: 100%;
  height: 52px;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 15px;
}

/* 이력서 */
.job-resume-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-resume-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.job-resume-item.active {
  border-color: #103995;
  background: #f8fbff;
}

.job-resume-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-resume-left strong {
  font-size: 16px;
}

.job-resume-left span {
  font-size: 13px;
  color: #666;
}

.job-resume-item button {
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: #e2e8f0;
  color: #103995;
  font-weight: 700;
  cursor: pointer;
}

.job-resume-item.active button {
  background: #103995;
  color: #fff;
  font-weight: 600;
}
/* 파일 */
.file-upload-box {
  border: 2px dashed #d6dde8;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.file-upload-box p {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

/* 자기소개 */
.job-apply-textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  padding: 16px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.6;
}

/* 동의 */
.job-agree-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

/* 하단 버튼 */
.job-apply-bottom {
  position: sticky;
  bottom: 0;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 0 0;
  margin-top: 24px;
}

.job-apply-cancel-btn,
.job-apply-submit-btn {
  height: 54px;
  padding: 0 28px;

  border: none;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
}

.job-apply-cancel-btn {
  background: #eef2f7;
  color: #444;
}

.job-apply-submit-btn {
  background: #103995;
  color: #fff;
}
.job-apply-file-notice {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8f9fc;
  border: 1px solid #e3e8f2;
}

.job-apply-file-notice strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #103995;
  margin-bottom: 10px;
}

.job-apply-file-notice p {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 8px;
  word-break: keep-all;
}

.job-apply-file-notice p:last-child {
  margin-bottom: 0;
}

/* =========================================
   선종 그룹
========================================= */
.ship-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 10px;
  background: #fff;
}

/* 버튼 */
.ship-group-card {
  position: relative;
  padding: 10px 12px;
  border: none;
  border-right: 1px solid #eef1f4;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.ship-group-card:last-child {
  border-right: none;
}
/* hover */
.ship-group-card:hover {
  background: #f8fafc;
}
/* 제목 */
.ship-group-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #222;
  margin-bottom: 5px;
}
/* 건수 */
.ship-group-card span {
  font-size: 12px;
  /*font-weight: 600;*/
  color: #8b95a1;
}
/* 활성 */
.ship-group-card.active {
  background: #103995;
}
.ship-group-card.active strong,
.ship-group-card.active span {
  color: #fff;
}
/*.ship-group-card.active::after {
  content: "";
  position: absolute;
  top: 14px;
  border-radius: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #fff;
}*/
/* =========================================
   하위 칩
========================================= */
.ship-chip-wrap {
  display: none;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.ship-chip-wrap.active {
  display: flex;
}
.ship-chip {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}
.ship-chip:hover {
  border-color: #103995;
  color: #103995;
}
.ship-chip.active {
  border-color: #103995;
  background: #103995;
  color: #fff;
  font-weight: 700;
}

/* =========================================
   분야별 선택
========================================= */
.field-layout {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 15px;
}
/* =========================
   전체 사이드 카드화
========================= */
.field-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* 타이틀 */
.field-title {
  font-size: 12px;
  font-weight: 700;
  color: #9aa4b2;
  padding: 10px 10px 14px;
  letter-spacing: 0.2px;
}

/* =========================
   아이템 (핵심 변경)
========================= */
.field-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

/* hover → 카드 뜨는 느낌 */
.field-item:hover {
  background: #f6f8fb;
  border-color: #e5e7eb;
  transform: translateX(2px);
}

/* 텍스트 */
.field-item span {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* 카운트 → 배지화 */
.field-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

/* =========================
   ACTIVE (완전 변경 포인트)
========================= */
.field-item.active {
  background: #111827;
  border-color: #111827;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.15);
}
.field-item.active span {
  color: #ffffff;
}
.field-item.active em {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.field-sidebar {
  max-height: 70vh;
  overflow-y: auto;
}

/* 스크롤바 최소화 */
.field-sidebar::-webkit-scrollbar {
  width: 6px;
}

.field-sidebar::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}
/*  우측 */
.field-content {
  min-width: 0;
}
.field-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
}
.field-current strong {
  font-size: 14px;
  color: #111;
}
/*모바일용*/
.field-mobile {
  display: none;
  margin-bottom: 14px;
}
.field-mobile-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #9aa4b2;
  margin-bottom: 6px;
}
.field-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
/* =========================
   상담 답변
========================= */
.counsel-answer {
  margin-top: 40px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
/* 상단 */
.counsel-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf4;
}
/* 제목 */
.counsel-answer-title {
  position: relative;
  padding-left: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.counsel-answer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: #1a4fa0;
}
/* 날짜 */
.counsel-answer-date {
  font-size: 12px;
  color: #888;
}
/* 내용 */
.counsel-answer-body {
  padding: 24px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  word-break: keep-all;
}
/*유관기관*/
/* ---------- table ---------- */
.partners-table-wrap {
  border: 1px solid #e6ebf3;
  border-radius: 20px;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  background: #f7f9fc;
  text-align: left;
  font-size: 14px;
  color: #5a6a85;
  padding: 16px 24px;
  border-bottom: 1px solid #e6ebf3;
}
tbody td {
  padding: 18px 24px;
  font-size: 14.5px;
  color: #0e2554;
  border-bottom: 1px solid #e6ebf3;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr {
  transition: background 0.15s ease;
}
tbody tr:hover {
  background: #f7f9fc;
}
.phone {
  font-variant-numeric: tabular-nums;
  color: #5a6a85;
}

.home-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1a4fa0;
  text-decoration: none;
}
.home-link-btn:hover {
  text-decoration: underline;
}
@media (max-width: 1024px) {
  /* 검색창 너비 축소 */
  .search-input {
    width: 160px;
  }

  /* 포토 그리드 2열 */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* 뷰 타이틀 */
  .view-title {
    font-size: 18px;
  }
  /*  반응형 – 포토 뷰 */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  /* 월간海바라기*/
  .haebaragi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  /*  월간海바라기 뷰*/
  .magazine-view-cover {
    flex: 0 0 200px;
  }
  /*뷰페이지*/
  .job-view-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .job-view-logo {
    width: 120px;
    height: 100px;
  }
  .job-view-body {
    grid-template-columns: 1fr;
  }
  .job-view-side {
    position: static;
  }
  .job-view-side-box {
    padding: 24px;
  }
  .ship-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  /*
  .board-table,
  .board-table tbody,
  .board-table tr {
    display: block;
  }
  .board-table tbody tr {
    padding: 14px 8px;
    border-bottom: 1px solid #f0f0f5;
    position: relative;
  }  
  .board-table .td-num,
  .board-table .td-author,
  .board-table .td-view {
    display: none;
  }
  tbody td {
    border-bottom: none !important;
  }
  .board-table .td-title {
    display: block;
    padding: 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
  }
  .board-table .td-num {
    display: block;
    text-align: left; 
    margin-bottom: 4px;
    padding: 0;
  } 
  .board-table .td-date {
    display: block;
    padding: 0;
    font-size: 12px;
    color: #bbb;
    text-align: right;
  }
  .board-table tbody tr.notice-row {
    background: #f7f8ff;
    border-radius: 8px;
    margin-bottom: 4px;
    padding: 14px 10px;
  }*/

  /* 번호 컬럼에 있는 badge-notice 는 제목 앞으로 보이게 */
  .board-table .td-num {
    display: block;
    margin-bottom: 4px;
  }
  .board-table .td-num:empty {
    display: none;
  }

  /* 검색 */
  .board-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-input {
    width: 160px;
  }

  /* 포토 그리드 2열 (모바일) */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .photo-title {
    font-size: 13px;
  }

  /* 뷰 */
  .view-title {
    font-size: 16px;
  }
  .view-body {
    font-size: 14px;
    padding: 20px 0 30px;
  }
  .view-nav-item {
    flex-wrap: wrap;
    gap: 6px;
  }
  .nav-date {
    /*width: 100%;*/
    margin-left: 74px;
    margin-top: -4px;
  }

  /* 페이지네이션 */
  .pag-btn,
  .pag-num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .photo-view-main {
    border-radius: 8px;
    margin: 16px 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .gallery-item {
    border-radius: 6px;
  }
  /* 월간海바라기*/
  .haebaragi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .haebaragi-title {
    font-size: 13px;
  }
  /*  월간海바라기 뷰*/
  .magazine-view-body {
    flex-direction: column;
    gap: 24px;
  }
  .magazine-view-cover {
    flex: none;
    width: 160px; /* 표지 크기 축소 */
    margin: 0 auto;
  }
  /*기업홍보관*/
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /*채용공고 뷰페이지*/
  .job-view-wrap {
    padding: 16px;
  }
  .job-view-top {
    padding: 22px 18px;
    gap: 20px;
  }
  .job-view-title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  /*.job-view-company-name {
    font-size: 16px;
  }*/
  .job-view-content {
    padding: 20px;
    border-radius: 16px;
  }
  .job-view-section-title {
    font-size: 18px;
  }
  .job-view-desc {
    font-size: 15px;
    padding: 16px 10px;
  }
  .job-view-row {
    grid-template-columns: 1fr;
  }
  .job-view-th {
    padding: 12px 14px 6px;
    background: #fff;
    border-bottom: none;
  }
  .job-view-td {
    padding: 0 14px 14px;
  }
  .job-view-side-box {
    border-radius: 16px;
    padding: 20px;
  }
  .job-view-side-title {
    font-size: 18px;
  }
  /* 상단 그룹 */
  .ship-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ship-group-card {
    padding: 12px 14px;
  }
  .ship-group-card strong {
    font-size: 14px;
  }
  .ship-group-card span {
    font-size: 11px;
  }
  .ship-group-card.active::after {
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
  }
  /* 하위 칩 */
  .ship-chip-wrap {
    display: none;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .ship-chip-wrap.active {
    display: block;
  }
  .ship-chip-wrap::-webkit-scrollbar {
    height: 4px;
  }
  .ship-chip-wrap::-webkit-scrollbar-thumb {
    background: #d5dbe5;
    border-radius: 999px;
  }
  .ship-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
  }
  .field-layout {
    grid-template-columns: 1fr;
  }

  .field-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 8px;
  }

  .field-item {
    flex-shrink: 0;
    min-width: 180px;
  }
  .field-mobile {
    display: block;
  }

  .field-sidebar {
    display: none; /* PC 사이드 숨김 */
  }

  .field-layout {
    grid-template-columns: 1fr;
  }
  .field-current {
    display: none;
  }
  /*상담답변*/
  .counsel-answer {
    margin-top: 28px;
    border-radius: 10px;
  }

  .counsel-answer-head {
    padding: 14px 16px;
  }

  .counsel-answer-body {
    padding: 18px 16px;
    font-size: 13px;
  }
}
