/* Page: Job Detail */

/* Job Title Section */
.job-detail-title {
  padding: 40px 0 16px;
}

.job-detail-title .container {
  padding: 0;
}

.job-detail-title__name {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.job-detail-title__subtitle {
  font-size: 20px;
  font-weight: 400;
}

.job-detail-title__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border, #ccc);
}

.job-detail-title__desc {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  flex: 1;
}

.job-detail-title__entry {
  flex-shrink: 0;
}

/* Body Sections */
.job-body {
  padding: 0 0 40px;
}

.job-section {
  margin-bottom: 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border, #ccc);
}

/* .job-section:last-child {
  border-bottom: none;
} */

.job-section__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary, #e60012);
  margin-bottom: 24px;
}

.job-section__content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text, #333);
}

.job-section__content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 12px 0;
}

.job-section__content li {
  margin-bottom: 8px;
}

/* Selection Flow */
.job-flow {
  padding: 40px 0;
  background: #f5f5f5;
}

.job-flow__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.job-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid var(--color-primary, #e60012);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 120px;
}

.job-flow__num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary, #e60012);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.job-flow__text {
  font-size: 14px;
  font-weight: 700;
}

.job-flow__arrow {
  color: var(--color-primary, #e60012);
  font-size: 12px;
}

/* Requirements Table */
.job-requirements {
  padding: 48px 0;
}

.job-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.job-table th,
.job-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  line-height: 1.7;
  vertical-align: top;
}

.job-table th {
  width: 180px;
  font-weight: 700;
  color: var(--color-primary, #e60012);
  background: transparent;
  white-space: nowrap;
}

.job-table td {
  color: #333;
}

/* Entry CTA */
.job-entry {
  padding: 48px 0;
}

.job-entry .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.job-entry__btn {
  width: 480px;
  height: 60px;
  font-size: 20px;
  font-family: var(--font-en);
}

.job-back__btn {
  width: 320px;
  height: 48px;
  font-weight: 700;
  font-family: var(--font-en);
}

.job-back__arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  /* Title Section */
  .job-detail-title {
    padding: 24px 20px;
  }
  .job-detail-title__row {
    flex-direction: column;
    gap: 16px;
  }
  .job-detail-title__name {
    font-size: clamp(20px, 4.5vw, 22px);
  }
  .job-detail-title__entry {
    align-self: flex-end;
    max-width: 162px;
    width: 100%;
  }
  .job-detail-title__desc {
    font-size: 14px;
    margin-bottom: 16px;
  }

  /* Body Sections */
  .job-body {
    padding: 0 0 24px;
  }
  .job-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }
  .job-section__title {
    font-size: 18px;
    padding-left: 0;
    margin-bottom: 16px;
  }
  .job-section__content {
    font-size: 14px;
  }

  /* Selection Flow */
  .job-flow {
    padding: 32px 0;
  }
  .job-flow__steps {
    flex-direction: column;
    gap: 8px;
  }
  .job-flow__step {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
  .job-flow__arrow {
    transform: rotate(90deg);
  }

  /* Requirements Table */
  .job-requirements {
    padding: 32px 0;
  }
  .job-table th,
  .job-table td {
    padding: 12px 16px;
    font-size: 14px;
  }
  .job-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .job-table td {
    display: block;
    padding-top: 0;
  }

  /* Entry CTA */
  .job-entry {
    padding: 32px 0;
  }
  .job-entry__btn {
    font-size: 24px;
    font-weight: 700;
    padding: 16px 32px;
    width: 350px;
    height: 66px;
    width: 100%;
  }
  .job-back__btn {
    font-size: 13px;
    padding: 10px 24px;
    width: 240px;
    height: 36px;
  }

  /* Related Jobs */
  .related-jobs__list {
    gap: 16px;
  }
}
