/* --------------------------------
      skin: recruitment_kr
--------------------------------- */

.sub .h2 {
  font-weight: 600;
  color: #333333;
}

/* --------------------------------
      skin: common
--------------------------------- */

/* 채용 리스트 전체 래퍼 */
.recruit__list_wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #333;
}

/* 상단 검색 */
.recruit__search_bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.recruit__search_bar select,
.recruit__search_bar input[type="text"] {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.search__wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search__wrap input {
  flex: 1;
  min-width: 200px;
}

.search__wrap button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.search__wrap img {
  width: 20px;
  height: 20px;
}

/* 테이블 헤더 */
.recruit__table_head {
  display: flex;
  padding: 1.2rem 1rem;
  background: #f5f5f5;
  border-top: 2px solid #17375e;
  border-bottom: 1px solid #ccc;
  font-weight: 600;
  color: #17375e;
  text-align: center;
}

.recruit__table_head .col.title {
  flex: 3;
  justify-content: center;
  display: flex;
  align-items: center;
}

.recruit__table_head .col.period {
  flex: 1.3;
  justify-content: center;
  display: flex;
  align-items: center;
}

.recruit__table_head .col.date {
  flex: 0.7;
  justify-content: center;
  display: flex;
  align-items: center;
}

/* 테이블 행 */
.recruit__table_row {
  display: flex;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
  transition: background 0.2s;
}

.recruit__table_row:hover {
  background: #f9f9f9;
}

.recruit__table_row.closed {
  opacity: 0.5;
}

/* 컬럼 설정 */
.col {
  padding: 0 0.5rem;
}

/* 모집내용 */
.recruit__table_row .col.title {
  flex: 3;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col.title a {
  color: #17375e;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col.title a:hover {
  text-decoration: underline;
}

/* 채용기간 */
.recruit__table_row .col.period {
  flex: 1.3;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 등록일 */
.recruit__table_row .col.date {
  flex: 0.7;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 비어 있을 때 */
.recruit__table_row.empty {
  text-align: center;
  justify-content: center;
  color: #999;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}

/* 글쓰기 버튼 */
.btn_write_wrap {
  margin-top: 2.5rem;
  text-align: right;
}

.btn_write {
  display: inline-block;
  background: #17375e;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.btn_write:hover {
  background: #0e2c4b;
}

/* 하단 링크 */
.recruit__link {
  margin-top: 3rem;
  margin-bottom: 5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.recruit__link_btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.recruit__link_btn.apply {
  background: #f5c634;
  color: #222;
}

.recruit__link_btn.inquiry {
  background: #17375e;
}

.recruit__link_btn:hover {
  opacity: 0.9;
}

.pagination_custom {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  /* 가로 중앙 */
  align-items: center;
  /* 세로 중앙 */
  gap: 0.5rem;
  /* 페이지 번호 사이 간격 */
  font-size: 0.95rem;
  text-align: center;
  /* 텍스트 기준 가운데 */
}

.pagination_custom a,
.pagination_custom .pg_page {
  color: #17375e;
  /* 기본 글자색 */
  border: 1px solid #ddd;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination_custom a:hover,
.pagination_custom .pg_page:hover {
  background-color: #f5c634;
  /* hover 시 노란색 */
  border-color: #f5c634;
  color: #222;
}

.pagination_custom .pg_current {
  background-color: #17375e;
  /* 현재 페이지 남색 */
  border-color: #17375e;
  color: #fff;
  border-radius: 4px;
}

/* ✅ 1024px 이하 */
@media screen and (max-width: 1024px) {
  .recruit__list_wrap {
    padding: 1.5rem 1rem;
  }

  .recruit__table_head {
    font-size: 0.9rem;
  }

  .recruit__table_row {
    padding: 1rem;
  }

  .col.title {
    flex: 2.5;
  }

  /* 제목 조금 줄이기 */
  .col.period {
    flex: 1.2;
  }

  .col.date {
    flex: 0.8;
  }
}

/* ✅ 768px 이하 (태블릿) */
@media screen and (max-width: 768px) {
  .recruit__search_bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search__wrap input {
    min-width: auto;
    width: 100%;
  }

  .recruit__table_head,
  .recruit__table_row {
    font-size: 0.85rem;
  }

  .recruit__table_head {
    padding: 1rem 0.5rem;
  }

  .recruit__table_row {
    padding: 0.8rem 0.5rem;
  }

  .col.title {
    flex: 2;
  }

  /* 제목 영역 좁히기 */
  .col.period {
    flex: 1;
  }

  .col.date {
    flex: 0.6;
  }
}

/* ✅ 390px 이하 (모바일) */
@media screen and (max-width: 390px) {
  .recruit__table_head {
    display: none;
  }

  /* 헤더 숨기고 카드형으로 */
  .recruit__table_row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .recruit__table_row .col {
    width: 100%;
    padding: 0.3rem 0;
    display: flex;
    justify-content: space-between;
  }

  .recruit__table_row .col.title {
    font-size: 1rem;
    white-space: normal;
  }

  .btn_write_wrap {
    text-align: center;
  }

  .recruit__link {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 16px;
  }
}


/* --------------------------------
      section: write.skin.php
--------------------------------- */

.write__wrap {
  background: #fff;
  padding: 3rem;
  margin: 3rem auto;
  max-width: 960px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}

.write__field,
.write__field-group {
  margin-bottom: 2rem;
}

.write__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.write__required {
  color: #e74c3c;
  margin-left: 4px;
  font-size: 0.85rem;
}

.write__input,
.write__input_date,
.write__input_file,
.write__content_area,
select.write__input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.write__input:focus,
.write__input_date:focus,
select.write__input:focus {
  border-color: #0077cc;
  outline: none;
}

/* 날짜 필드 */
.write__date_range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 그리드 정렬 */
.write__field-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* 버튼 영역 */
.write__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.write__btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.write__btn_cancel {
  background: #ccc;
  color: #fff;
}

.write__btn_cancel:hover {
  background: #bbb;
}

.write__btn_submit {
  background: #0077cc;
  color: #fff;
}

.write__btn_submit:hover {
  background: #005fa3;
}

/* 에디터 영역 (기본 대응) */
.write__content_area {
  min-height: 200px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  background: #fafafa;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------
      section: view.skin.php
--------------------------------- */

/* 상세 전체 레이아웃 */
.view__wrap {
  max-width: 1024px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'SUIT', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* 타이틀 */
.view__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #17375e;
}

/* 상태 + 메타 정보 */
.view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 2.5rem;
}

.view__status {
  font-weight: 600;
}

.view__status.recruiting {
  color: #2c9c2c;
}

.view__status.closed {
  color: #999;
}

.view__status.always {
  color: #0077cc;
}

.view__status.ready {
  color: #f39c12;
}

/* 섹션 공통 */
.view__section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  border-top: 1px solid #eee;
  padding: 1.5rem 0;
  align-items: baseline;
}

.view__section:first-of-type {
  border-top: none;
}

.view__section h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.view__section p {
  margin: 0;
  color: #333;
  white-space: pre-line;
}

/* 상세 설명 */
.view__content {
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 2rem;
}

.view__content img {
  width: 100%;
  display: block;
  margin-top: 1rem;
}

/* 첨부파일 */
.view__section.file-section {
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
}

.view__file_list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.view__file_list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.8rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
}

.view__file_list li:hover {
  background: #f1f7ff;
  transform: translateY(-1px);
}

.view__file_list li::before {
  content: "📎";
  /* 간단한 아이콘 */
  font-size: 1rem;
  color: #17375e;
}

.view__file_list a {
  flex: 1;
  color: #17375e;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.view__file_list a:hover {
  text-decoration: underline;
}

/* 버튼 영역 */
.view__footer {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.view__footer_left {
  display: flex;
  gap: 0.75rem;
}

/* 버튼 공통 */
.view__btn_list {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f4f4f4;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

.view__btn_list:hover {
  background: #eaeaea;
}

/* 버튼 - 삭제 */
.view__btn_delete {
  color: #c0392b;
  border-color: #c0392b;
}

.view__btn_delete:hover {
  background: #fceaea;
}

/* 버튼 - 수정 */
.view__btn_edit {
  color: #0077cc;
  border-color: #0077cc;
}

.view__btn_edit:hover {
  background: #e6f3fc;
}

/* 정보 그리드 박스 */
.grid__wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  margin-top: 2rem;
}

.grid__wrap.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid__item {
  padding: 12px;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  word-break: break-word;
  font-size: 0.9rem;
}

.grid__item.label {
  background: #f5f5f5;
  font-weight: 600;
  color: #555;
}

.grid__item.value {
  color: #333;
}

/* ✅ 1024px 이하 (태블릿) */
@media screen and (max-width: 1024px) {
  .view__wrap {
    padding: 2rem 1.5rem;
  }

  .view__section {
    grid-template-columns: 150px 1fr;
    gap: 0.8rem;
    padding: 1.2rem 0;
  }

  .view__title {
    font-size: 1.4rem;
  }

  .grid__wrap.cols-3 {
    grid-template-columns: repeat(2, 1fr);
    /* 3열 → 2열 */
  }
}

/* ✅ 768px 이하 (모바일 시작) */
@media screen and (max-width: 768px) {
  .view__wrap {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }

  .view__section {
    grid-template-columns: 1fr;
    /* 제목/내용 세로로 */
  }

  .view__section h3 {
    margin-bottom: 0.4rem;
  }

  .view__meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .grid__wrap {
    grid-template-columns: 1fr 1fr;
    /* 강제 2열 */
  }

  .grid__wrap.cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .view__footer {
    flex-direction: column;
    gap: 0.8rem;
  }

  .view__footer_left {
    flex-direction: column;
  }
}

/* ✅ 480px 이하 (좁은 모바일) */
@media screen and (max-width: 480px) {
  .view__wrap {
    padding: 1rem 0.8rem;
    font-size: 0.85rem;
  }

  .view__title {
    font-size: 1.2rem;
  }

  .grid__wrap,
  .grid__wrap.cols-3 {
    grid-template-columns: 1fr;
    /* 1열 카드형 */
  }

  .view__file_list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .view__file_list a {
    font-size: 0.85rem;
  }
}