/* ============================================
   Job Detail — Accordion + Table Layout
   Base color: #0161A8 (site blue)
   ============================================ */

/* ---------- Container ---------- */
.job-detail {
  margin-top: 32px;
  font-family: inherit;
}

/* ---------- Title (heading field) ---------- */
.post_content .job-detail__title,
h2.job-detail__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0161A8;
  line-height: 1.5;
}

/* ---------- Section (details element) ---------- */
.job-detail__section {
  margin-bottom: 8px;
  border-radius: 2px;
  overflow: hidden;
}

/* ---------- Accordion Header (summary element) ---------- */
.job-detail__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0161A8;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease;
  line-height: 1.4;
}

.job-detail__heading:hover {
  background-color: #014e8a;
}

/* Hide browser default marker */
.job-detail__heading::-webkit-details-marker {
  display: none;
}

.job-detail__heading::marker {
  display: none;
  content: "";
}

/* Open/close icon via ::after */
.job-detail__heading::after {
  content: '+';
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
  display: inline-block;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

details[open] > .job-detail__heading::after {
  content: '−';
}

/* ---------- Logo ---------- */
.job-detail__logo {
  padding: 16px;
  background-color: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.job-detail__logo img {
  width: auto;
  height: 150px;
  display: block;
  margin: 0 auto;
  padding: 0;
}

/* ---------- Table ---------- */
.job-detail__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
}

.job-detail__table tr {
  border-bottom: 1px solid #e0e0e0;
}

.job-detail__table tr:last-child {
  border-bottom: none;
}

.job-detail__table th {
  width: 30%;
  background-color: #f0f6fc;
  color: #333333;
  font-weight: 600;
  padding: 12px 16px;
  vertical-align: top;
  text-align: left;
  word-break: break-word;
  line-height: 1.6;
}

.job-detail__table td {
  width: 70%;
  padding: 12px 16px;
  vertical-align: top;
  word-break: break-word;
  line-height: 1.7;
  color: #333333;
}

.job-detail__table td a {
  color: #0161A8;
  text-decoration: underline;
  word-break: break-all;
}

.job-detail__table td a:hover {
  color: #014e8a;
  text-decoration: none;
}

/* ---------- Responsive: Mobile (≤767px) ---------- */
@media (max-width: 767px) {

  .job-detail__section {
    border: 1px solid #e0e0e0;
  }

  .job-detail__section .s_table {
    margin-bottom: 0 !important;
  }
  .job-detail__section .job-detail__table {
    margin-bottom: 0 !important;
  }
  .job-detail {
    margin-top: 24px;
  }

  .job-detail__heading {
    font-size: 14px;
    padding: 12px;
  }

  .job-detail__heading::after {
    font-size: 24px;
    width: 24px;
  }

  .job-detail__logo img {
    max-width: 100%;
  }

  .job-detail__table,
  .job-detail__table tbody,
  .job-detail__table tr,
  .job-detail__table th,
  .job-detail__table td {
    display: block;
    width: 100%;
  }

  .job-detail__table tr {
    border-bottom: none;
  }

  .job-detail__table th {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: none !important;
  }

  .job-detail__table td {
    width: 100%;
    padding: 8px 12px;
    border: none !important;
    font-size: 14px;
  }

  .job-detail__table tr:last-child td {
    border-bottom: none;
  }
}
