/* ===== Base Container ===== */
.job-detail-container {
  max-width: 850px;
  margin: 3rem auto;
  background-color: #ffffff;
  padding: 6rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

/* ===== Header ===== */
.job-header {
  text-align: center;
  margin-bottom: 2rem;
}

.company-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.job-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.meta-info {
  color: #888;
  font-size: 0.95rem;
}

/* ===== Highlight Boxes (Salary, Type, Position) ===== */
.job-info-boxes {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0;
}



.info-box {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.info-box:hover {
  transform: translateY(-2px);
}

.info-icon {
  width: 32px;
  height: 32px;
  stroke: #528ee2;
  margin-right: 1rem;
  flex-shrink: 0;
}



.info-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.info-detail {
  font-size: 0.95rem;
  color: #333;
}

/* ===== Sections (Description, Requirements) ===== */
.job-section {
  margin-bottom: 2rem;
}

.job-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #222;
}

.job-section p {
  color: #444;
  line-height: 1.6;
  white-space: pre-line; /* enables linebreaks via |linebreaks filter */
}

/* ===== CTA Button ===== */
.apply-now-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.apply-button {
  background-color: #111827;
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.apply-button:hover {
  background-color: #2174e7;
}

/* ========== Mobile Styles ========== */
@media (max-width: 768px) {
  .job-detail-container {
    padding: 1.5rem 1.25rem;
    margin: 1rem;
  }

  .company-logo {
    width: 60px;
    height: 60px;
  }

  .job-title {
    font-size: 1.5rem;
  }

  .meta-info {
    font-size: 0.85rem;
  }

  .job-info-boxes {
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .info-box {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }

  .info-box img {
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
  }

  .info-title {
    font-size: 0.9rem;
  }

  .info-detail {
    font-size: 0.9rem;
  }

  .job-section h2 {
    font-size: 1.1rem;
  }

  .job-section p {
    font-size: 0.95rem;
  }

  .apply-now-wrapper {
    margin-top: 2rem;
  }

  .apply-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }
}
