/* 📄 custom.css */

#jobsPage {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* jobs-header 가운데 정렬 */
.jobs-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.jobs-title {
  font-size: 22px;
  font-weight: 900;
  color: #222;
}

/* 구인구직 테이블 격자선 */
.job-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.job-table thead tr {
  background: #e0f7fa;
}

.job-table th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #00838f;
  text-align: left;
  white-space: nowrap;
  border: 1px solid #e0f7fa;   /* ✅ 스타일2 격자선 */
}

.job-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: #444;
  vertical-align: middle;
  border: 1px solid #e0f7fa;   /* ✅ 스타일2 격자선 */
}

.job-table tr:hover td {
  background: #f4f9fb;
  cursor: pointer;
}

/* 뉴스 카드 (가로형) */
.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-bottom: 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,181,200,0.15);
}
.news-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.news-card-thumb .emoji {
  font-size: 64px;
  z-index: 1;
}
.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
/* 카테고리별 색상 */
.news-bg-policy   { background: linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%); }
.news-bg-health   { background: linear-gradient(135deg,#fff3e0 0%,#ffe0b2 100%); }
.news-bg-welfare  { background: linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%); }
.news-bg-job      { background: linear-gradient(135deg,#fce4ec 0%,#f8bbd0 100%); }
.news-bg-default  { background: linear-gradient(135deg,#f3e5f5 0%,#e1bee7 100%); }
.news-badge-policy  { background: #00b5c8; }
.news-badge-health  { background: #f97316; }
.news-badge-welfare { background: #43a047; }
.news-badge-job     { background: #e91e63; }
.news-badge-default { background: #9c27b0; }
.news-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-card-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.4;
  color: #222;
}
.news-card-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

/* 모바일 - 세로로 쌓임 */
@media (max-width: 600px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card-thumb { min-height: 160px; }
}


/* 뉴스 상세 카드 */
.news-detail-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.news-detail-thumb {
  width: 100%;
  min-height: 280px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.news-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.news-detail-thumb .emoji {
  font-size: 96px;
  z-index: 1;
}
.news-detail-category {
  display: inline-block;
  border-radius: 12px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.news-detail-title {
  font-size: 26px;
  font-weight: 900;
  color: #222;
  line-height: 1.4;
  margin-bottom: 16px;
}
.news-detail-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0f7fa;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.news-detail-content {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
  white-space: pre-wrap;
  margin-bottom: 32px;
}
.news-detail-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid #e0f7fa;
  padding-top: 20px;
}
.news-detail-actions .cbtn {
  flex: 1;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}

/* 모바일 */
@media (max-width: 600px) {
  .news-detail-card { padding: 20px; }
  .news-detail-title { font-size: 22px; }
  .news-detail-thumb { min-height: 200px; }
  .news-detail-thumb .emoji { font-size: 72px; }
}

/* 뉴스 wrap 폭 늘리기 */
.news-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* 로그인 페이지 */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-title {
  font-size: 24px;
  font-weight: 900;
  color: #222;
  margin-bottom: 8px;
  text-align: center;
}

.login-subtitle {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-bottom: 32px;
}

.login-links {
  text-align: center;
  margin-top: 20px;
}

.login-links a {
  color: #00b5c8;
  text-decoration: none;
  font-weight: 600;
  margin: 0 10px;
}

.login-links a:hover {
  text-decoration: underline;
}

/* 모바일 */
@media (max-width: 480px) {
  .login-container {
    margin: 40px auto;
    padding: 10px;
  }
  .login-card {
    padding: 24px;
  }
}

/* 카드 목록을 2단 그리드로 */
/* 공통 스타일 (기본은 1단) */
.news-list {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

/* 실버뉴스만 2단 그리드 */
#newsList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 모바일은 다시 1단 */
@media (max-width: 900px) {
  #newsList {
    grid-template-columns: 1fr;
  }
}

#boardList .news-card {
  margin-bottom: 16px;
}

/* 카드 자체 - margin-bottom 제거 (grid gap 사용) */
.news-card {
  margin-bottom: 0;
  grid-template-columns: 200px 1fr;  /* 썸네일 영역 살짝 줄이기 */
}

/* 모바일 - 1단으로 */
@media (max-width: 900px) {
  .news-list {
    grid-template-columns: 1fr;
  }
  .news-card {
    grid-template-columns: 1fr;  /* 모바일에서는 세로 */
  }
}

.jobs-wrap {
  max-width: 1300px;  /* 800px → 1300px */
  /* 나머지 그대로 */
}


/* 전체업체 리스트 */
.biz-list-wrap {
  margin-bottom: 32px;
}

.biz-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.biz-list-table thead tr {
  background: #e0f7fa;
}

.biz-list-table th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #00838f;
  text-align: left;
  white-space: nowrap;
  border: 1px solid #e0f7fa;
}

.biz-list-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: #444;
  vertical-align: middle;
  border: 1px solid #e0f7fa;
}

.biz-list-table tr:hover td {
  background: #f4f9fb;
  cursor: pointer;
}

.biz-list-table .biz-region {
  color: #00838f;
  font-weight: 600;
}

.biz-list-table .biz-name {
  color: #222;
  font-weight: 700;
}

.biz-list-table .biz-type {
  color: #666;
}

.biz-list-table .biz-phone {
  color: #1565c0;
  font-family: 'Apple SD Gothic Neo', sans-serif;
}

#bizListPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#bizListPagination .page-btn {
  background: #fff;
  border: 1.5px solid #b2dfdb;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #00838f;
  cursor: pointer;
  min-width: 36px;
}

#bizListPagination .page-btn:hover,
#bizListPagination .page-btn.active {
  background: #00b5c8;
  color: #fff;
  border-color: #00b5c8;
}

#bizListPagination .page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 모바일 반응형 — 전화번호 숨김 (좁아지므로) */
@media (max-width: 600px) {
  .biz-list-table th:nth-child(4),
  .biz-list-table td:nth-child(4) {
    display: none;
  }
}

/* 카드 이미지 영역 */
.card-img {
  position: relative;
  height: 60px;         /* 변경 */
  overflow: hidden;
  background: #e0f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;      /* 변경 */
}

/* 카드 본문 */
.card-body {
  padding: 8px 10px;    /* 변경 */
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 카드 이름 */
.card-name {
  font-size: 13px;      /* 변경 */
  font-weight: 800;
  color: #222;
  margin-bottom: 3px;   /* 변경 */
}

/* 카드 주소 */
.card-addr {
  font-size: 11px;      /* 변경 */
  color: #888;
  margin-bottom: 6px;   /* 변경 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-name {
  font-size: 13px;
  font-weight: 800;
  color: #222;
  margin-bottom: 3px;
  /* ↓ 한 줄 처리 추가 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card {
  /* 기존 스타일 그대로 + 추가 */
  height: 100%;
}

/* 자유게시판 상세 카드 */
.board-detail-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.board-detail-title {
  font-size: 26px;
  font-weight: 900;
  color: #222;
  line-height: 1.4;
  margin-bottom: 16px;
}

.board-detail-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0f7fa;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.board-detail-content {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
  white-space: pre-wrap;
  margin-bottom: 32px;
  min-height: 200px;
}

.board-detail-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid #e0f7fa;
  padding-top: 20px;
}

.board-detail-actions .cbtn {
  flex: 1;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}

/* 모바일 */
@media (max-width: 600px) {
  .board-detail-card { padding: 20px; }
  .board-detail-title { font-size: 22px; }
}

/* 회원가입 페이지 */
.signup-card {
  background: #fff;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}

.signup-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0f7fa;
  position: relative;
}

.signup-back {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0 12px 0 0;
  line-height: 1;
}

.signup-back:hover { color: #00b5c8; }

.signup-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #222;
  margin: 0;
  /* 좌측 뒤로가기 버튼 폭만큼 우측 여백 보정 */
  padding-right: 40px;
}

/* 섹션 */
.signup-section {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.signup-section:last-of-type {
  border-bottom: none;
}

.signup-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00b5c8;
  display: inline-block;
}

/* 약관 동의 row */
.agree-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.agree-row:last-child {
  border-bottom: none;
}

.agree-row.agree-all {
  background: #f4f9fb;
  margin: 0 -24px 8px;
  padding: 14px 24px;
  border-bottom: 2px solid #00b5c8;
}

.agree-label {
  flex: 1;
  font-size: 14px;
  color: #444;
  margin-left: 12px;
}

.agree-detail {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}

.agree-detail:hover { color: #00b5c8; }

/* 토글 스위치 */
.agree-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.agree-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: .3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}

.agree-toggle input:checked + .toggle-slider {
  background-color: #00b5c8;
}

.agree-toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* SNS 버튼 영역 */
.sns-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.sns-label {
  font-size: 14px;
  color: #444;
}

.sns-buttons {
  display: flex;
  gap: 8px;
}

.sns-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.sns-btn:hover {
  opacity: 1;
}

.sns-naver  { background: #03C75A; }
.sns-kakao  { background: #FEE500; color: #000; }
.sns-google { background: #fff; color: #4285F4; border: 1px solid #ddd; }

/* 가입 버튼 액션 영역 */
.signup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.btn-signup-personal,
.btn-signup-business {
  padding: 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  border-top: 1px solid #e0f7fa;
}

.btn-signup-personal {
  background: #fff;
  color: #00b5c8;
  border-right: 1px solid #e0f7fa;
}

.btn-signup-personal:hover {
  background: #f4f9fb;
}

.btn-signup-business {
  background: #00b5c8;
  color: #fff;
}

.btn-signup-business:hover {
  background: #0097a7;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  .signup-section { padding: 20px 16px; }
  .agree-row.agree-all { margin: 0 -16px 8px; padding: 14px 16px; }
  .signup-title { font-size: 16px; }
}

/* 약관 모달 - 일반 모달보다 크게 */
.agreement-modal-content {
  max-width: 700px !important;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

.agreement-modal-content .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e0f7fa;
  margin-bottom: 0 !important;
}

.agreement-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
  white-space: pre-wrap;
  background: #fafbfc;
}

.agreement-body::-webkit-scrollbar {
  width: 8px;
}

.agreement-body::-webkit-scrollbar-thumb {
  background: #b2dfdb;
  border-radius: 4px;
}

.agreement-body::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.agreement-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0f7fa;
  display: flex;
  justify-content: flex-end;
  background: #fff;
}

.agreement-footer .btn-cancel {
  flex: 0 0 auto;
  padding: 10px 32px;
}

/* 약관 텍스트 강조 (조항 제목) */
.agreement-body strong {
  color: #00838f;
  font-weight: 800;
  display: block;
  margin: 16px 0 8px;
}

/* 모바일 */
@media (max-width: 600px) {
  .agreement-modal-content {
    max-width: 95% !important;
    max-height: 90vh;
  }
  .agreement-body { font-size: 12px; padding: 16px; }
}

/* 회원가입 폼 페이지 */
/* 회원가입 폼 페이지 - 세로 컴팩트 버전 */
.signup-form-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;              /* 32px → 24px */
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.signup-form-title {
  font-size: 18px;            /* 20px → 18px */
  font-weight: 800;
  color: #222;
  margin-bottom: 16px;        /* 24px → 16px */
  padding-bottom: 12px;       /* 16px → 12px */
  border-bottom: 2px solid #e0f7fa;
}

.form-section {
  margin-bottom: 20px;        /* 32px → 20px */
}

.form-section-title {
  font-size: 15px;            /* 16px → 15px */
  font-weight: 800;
  color: #00838f;
  padding-bottom: 8px;        /* 10px → 8px */
  border-bottom: 2px solid #00b5c8;
  margin-bottom: 12px;        /* 16px → 12px */
  display: inline-block;
}
/* 그리드 row (라벨 + 입력) */
/* 그리드 row - 가장 큰 효과 */
.form-row-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;                  /* 16px → 12px */
  align-items: center;        /* start → center (라벨이 입력란 가운데에) */
  padding: 8px 0;             /* 14px → 8px (← 핵심!) */
  border-bottom: 1px solid #f0f0f0;
}

.form-row-grid:last-child {
  border-bottom: none;
}

.form-grid-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding-top: 0;             /* 8px → 0 */
}

.form-grid-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-grid-input input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.form-grid-input input:focus {
  border-color: #00b5c8;
}

.form-grid-input input.error {
  border-color: #e53935;
}

.form-help {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  margin-top: 2px;
}

.required {
  color: #e53935;
  font-weight: 800;
}

/* 본인확인 버튼 */
.btn-verify {
  background: #fff;
  border: 1.5px solid #b2dfdb;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #00838f;
  cursor: pointer;
  align-self: flex-start;
}

.btn-verify:hover {
  background: #e0f7fa;
}

/* 자동등록방지 */
.captcha-row {
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  flex-wrap: wrap;
}

.captcha-image {
  background: #f0f0f0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #444;
  font-family: monospace;
  /* 글자 약간 기울이기 (캡차 느낌) */
  text-decoration: line-through wavy #aaa;
  text-decoration-thickness: 1px;
  user-select: none;
}

.captcha-input {
  width: 100px !important;
  text-align: center;
  font-family: monospace;
  letter-spacing: 2px;
}

.btn-captcha-refresh {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}

.btn-captcha-refresh:hover {
  background: #e0e0e0;
}

/* 액션 버튼 */
.signup-form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-top: 20px;
}

.signup-form-actions .btn-cancel {
  padding: 12px;
  background: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.signup-form-actions .btn-cancel:hover {
  background: #e0e0e0;
}

.btn-submit-signup {
  padding: 14px;
  background: #00b5c8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit-signup:hover {
  background: #0097a7;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  .signup-form-card { padding: 20px; }
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .form-grid-label {
    padding-top: 0;
    margin-bottom: 4px;
  }
  .signup-form-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* 네비 - 로그인 상태 표시 */
.nav-user {
  margin-left: auto;       /* 오른쪽 끝으로 보냄 */
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #e0f7fa;
  border-radius: 16px;
  font-size: 13px;
  color: #00838f;
  font-weight: 600;
}

.nav-user::before {
  content: "👤";
  font-size: 14px;
}

.nav-user-name {
  font-weight: 700;
}

/* 기존 .nav-badge의 margin-left:auto 제거 또는 유지 */
.nav-badge {
  margin-left: 12px;       /* auto → 12px (nav-user에 자리 양보) */
  background: #00b5c8;
  color: #fff;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
}