/* ===== JOBS BOARD SECTION ===== */
.jobs-board {
  background: #f7f5f0;          /* off white */
  padding: 3.5rem 1.5rem 4rem;
}

.jobs-board-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Header */
.jobs-board-header {
  max-width: 720px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.jobs-board-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #155b3c;
  margin-bottom: 0.5rem;
}

.jobs-board-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #495c53;
}

/* Two-column layout */
.jobs-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: stretch;
}

/* LEFT: Sidebar */
.jobs-sidebar {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 1.2rem;
}

.jobs-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0e75c2;
  margin-bottom: 0.9rem;
}

/* Scrollable job list when tall */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
}

/* Job tab / item */
.job-item {
  text-align: left;
  width: 100%;
  border: none;
  outline: none;
  background: #0e75c2;
  color: #ffffff;
  padding: 0.7rem 0.85rem 0.8rem;
  cursor: pointer;
  display: block;

  /* no radius, no shadow */
  border-left: 3px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-left-color 0.2s ease;
}

.job-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.job-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.95;
}

.job-meta-posts,
.job-meta-deadline {
  white-space: nowrap;
}

/* Hover + active = orange */
.job-item:hover,
.job-item:focus-visible {
  background: #ff7a1a;
}

.job-item.active {
  background: #ff7a1a;
  border-left-color: #ffffff;
}

/* RIGHT: Content area */
.jobs-content {
  padding-left: 0.2rem;
  /* Scroll if long content */
  max-height: 480px;
  overflow-y: auto;
}

/* Empty state */
.jobs-empty-state {
  text-align: center;
  padding: 1rem 0.5rem;
}

.jobs-empty-image {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.jobs-empty-text {
  font-size: 0.96rem;
  color: #49625a;
}

/* Job detail */
.jobs-detail {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.jobs-detail-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #155b3c;
  text-transform: none;
}

.jobs-detail-section h4 {
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #0e75c2;
  margin-bottom: 0.35rem;
}

.jobs-detail-section p,
.jobs-detail-section ul {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #394944;
}

.jobs-detail-section ul {
  padding-left: 1.1rem;
}

.jobs-detail-section li + li {
  margin-top: 0.25rem;
}

.jobs-equal-note {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #0e75c2;
  font-weight: 600;
}

/* Thin scrollbars for sidebar & content (optional, modern browsers) */
.jobs-list::-webkit-scrollbar,
.jobs-content::-webkit-scrollbar {
  width: 6px;
}
.jobs-list::-webkit-scrollbar-thumb,
.jobs-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .jobs-board-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .jobs-content {
    max-height: none;
    overflow-y: visible;
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 640px) {
  .jobs-board {
    padding: 3rem 1.2rem 3.4rem;
  }

  .job-item-title {
    font-size: 0.92rem;
  }

  .job-item-meta {
    flex-direction: column;
    gap: 0.15rem;
  }
}
