.single-job-container {
  max-width: 900px;
  margin: 0 auto 20px; /* מרכז את הקונטיינר */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  color: #334155;
  padding: 25px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  border-left: 6px solid #0097A7; /* קו כחול משמאל */
  direction: rtl;
  text-align: right;
}

/* כותרת */
.single-job-container h1 {
  display: inline-block;
  background: #D4F1F4;
  color: black;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 2px 10px;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  line-height: 1.2;
}

/* מידע משרה */
.job-meta {
  font-size: 13px;
  color: #5D5D5D;
  font-weight: 500;
  margin-top: 0px;
}

/* תגיות */
.job-tags span {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(205, 224, 219, 0.8);
  color: #0288d1;
  padding: 0px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
}

.job-tags span:hover {
  background: #bae6fd;
  color: #0369a1;
  box-shadow: 0 4px 10px rgb(2 132 199 / 0.3);
}

/* תוכן המשרה */
.job-content {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 0px;
  padding: 0 !important;
}

.job-content * {
  margin-top: 0 !important;
  margin-bottom: 0.5em !important;
  padding: 0 !important;
}

/* טיפול בבלוקים של גוטנברג */
.job-content .wp-block-paragraph,
.job-content .wp-block-heading,
.job-content .wp-block-image,
.job-content .wp-block-list,
.job-content .wp-block-quote {
  margin-top: 0 !important;
  margin-bottom: 0.6em !important;
  padding: 0 !important;
  line-height: 1.4;
}

/* כפתורים */
.button1 {
  border: none;
  padding: 1px 18px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #0097A7;
  margin-top: 10px;
}

.button1:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.share-job-btn {
  border: none;
  padding: 5px 18px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #005F6A;
}

.share-job-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* פגינציה */
.job-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #475569;
  user-select: none;
  flex-wrap: wrap;
}

.job-pagination a {
  background: #e0f2fe;
  padding: 10px 22px;
  border-radius: 12px;
  color: #0284c7;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-pagination a:hover {
  background: #0284c7;
  color: #f0f9ff;
  box-shadow: 0 6px 25px #0284c7cc;
}

/* פופאפ קורות חיים */
.cv-terms-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cv-terms-modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
}

.modal-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #005F6A;
}

.cv-upload-form-inline button {
  background-color: #0097A7;
  color: #fff;
  border-radius: 5px;
  padding: 5px 18px;
  border: none;
  cursor: pointer;
}

/* --- התאמה למובייל --- */
@media (max-width: 600px) {
  .single-job-container {
    padding: 20px 15px;
  }

  .single-job-container h1 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .job-tags span {
    margin: 0 5px 5px 0;
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .job-content {
    font-size: 0.95rem;
  }

  .button1,
  .share-job-btn {
    width: 100%;
    box-sizing: border-box;
  }

  /* שדה קובץ קורות חיים מתאים למובייל */
  .cv-upload-form-inline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .cv-upload-form-inline input[type="file"],
  .cv-upload-form-inline button,
  .cv-upload-form-inline .cv-upload-status {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
