
/* ── Breadcrumb ── */
.breadcrumb-wrapper {
  background: white;
  border-bottom: 1px solid #e1e1e1;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

/* separator */
.breadcrumb li + li::before {
  content: '/';
  color: #999;
  margin: 0 0.5rem;
  font-weight: 400;
}

.breadcrumb a {
  color: #0891b2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #0e7490;
  text-decoration: none;
}

/* current (last) item */
.breadcrumb li:last-child a {
  color: #666;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
  cursor: default;
  pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .breadcrumb-wrapper {
    padding: 1rem 0;
  }

  .breadcrumb {
    padding: 0 1rem;
    font-size: 0.9rem;
  }

  .breadcrumb li {
    font-size: 0.9rem;
  }

  .breadcrumb li + li::before {
    margin: 0 0.5rem;
  }

  .breadcrumb li:last-child {
    max-width: none; /* Remove truncation */
    white-space: normal; /* Allow wrapping */
    line-height: 1.4;
  }
}
/* ── END Breadcrumb ── */

/* JOB POST PAGE */
.job-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fafafa;
  min-height: 100vh;
}

.job-post {
  background: white;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* JOB HEADER */
.job-header {
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.job-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.job-header .location {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 0.75rem 0;
}

.job-header time {
  display: block;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.job-header .btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #0891b2;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.1s ease;
  border: none;
  text-decoration: none;
}

.job-header .btn-primary:hover {
  background: #0e7490;
  transform: translateY(-1px);
  text-decoration: none;
}

/* JOB CONTENT */
.job-content {
  padding: 2rem;
}

.job-section {
  margin-bottom: 3rem; /* Increased from 2.5rem */
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem 0;
}

/* Job Description */
.job-description {
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
}

.job-description h1,
.job-description h2,
.job-description h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #000;
}

.job-description h1 { font-size: 1.5rem; }
.job-description h2 { font-size: 1.3rem; }
.job-description h3 { font-size: 1.1rem; }

.job-description p {
  margin-bottom: 1rem;
}

.job-description ul,
.job-description ol {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
}

.job-description li {
  margin-bottom: 0.5rem;
}

.job-description a {
  color: #0891b2;
  text-decoration: underline;
}

.job-description a:hover {
  color: #0e7490;
}

/* Salary Section */
.salary-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.salary-range {
  font-size: 1.75rem; /* Increased from 1.5rem */
  font-weight: 700;
  color: #0891b2; /* Changed to cyan */
  margin: 0;
  letter-spacing: -0.02em;
}

.salary-min,
.salary-max {
  color: #0891b2;
}

.salary-dash {
  font-weight: 400;
  color: #666;
  margin: 0 0.5rem;
}

/* Company Section */
.job-section address {
  font-style: normal;
}

.company-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 0.5rem 0;
}

.job-section address a {
  color: #0891b2;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.job-section address a:hover {
  color: #0e7490;
}

/* CTA Section */
.job-cta {
  margin-top: 3.5rem; /* Increased from 3rem */
  padding-top: 2.5rem; /* Increased from 2rem */
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.job-cta .btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  background: #0891b2;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.job-cta .btn-primary:hover {
  background: #0e7490;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ADMIN CONTROLS */
.admin-controls {
  padding: 2rem;
  background: white;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.btn-secondary {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: white;
  color: #6c757d;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #6c757d;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: #6c757d;
  color: white;
  text-decoration: none;
}

.btn-danger {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: white;
  color: #dc3545;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #dc3545;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-danger:hover {
  background: #dc3545;
  color: white;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-card {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #000;
}

.modal-close::before {
  content: "×";
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  margin: 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e1e1e1;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .job-container {
    padding: 1rem 0.5rem;
  }

  .job-header,
  .job-content {
    padding: 1.5rem 1rem;
  }

  .job-header h1 {
    font-size: 1.5rem;
  }

  .salary-range {
    font-size: 1.25rem;
  }

  .job-cta .btn-primary {
    width: 100%;
  }

  .admin-controls {
    flex-direction: column;
  }

  .admin-controls .btn-secondary,
  .admin-controls .btn-danger {
    width: 100%;
  }
}

@media (min-width: 641px) {
  .admin-controls {
    flex-direction: row;
    justify-content: center;
  }
  
  .admin-controls .btn-secondary,
  .admin-controls .btn-danger {
    width: auto;
    min-width: 200px;
  }
}