.section {
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#careers-section {
  display: flex;
  text-align: justify;
  justify-content: center;
  align-items: center;
}

#careers1-section {
  display: flex;
  text-align: justify;
  justify-content: center;
  align-items: center;
}

.jobSearchForm {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, #1f1f1f, #2c2c2e);
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 900px;
}

/* Input and Select Fields */
.jobSearchForm input[type="text"],
.jobSearchForm select {
  padding: 0.9rem 1.2rem;
  border: 1px solid #444;
  background-color: #2d2d2f;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  max-width: 250px;
  transition: border 0.3s ease;
}

.jobSearchForm input::placeholder {
  color: #aaa;
}

.jobSearchForm input:focus,
.jobSearchForm select:focus {
  outline: none;
  border-color: #25A9F2;
}

.jobSearchForm button {
  padding: 0.9rem 2rem;
  background-color: #25A9F2;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.jobSearchForm button:hover {
  background-color: #25A9F2;
  color: #fff;
}

@media (max-width: 768px) {
  .jobSearchForm {
    flex-direction: column;
    align-items: stretch;
  }

  .jobSearchForm input,
  .jobSearchForm select,
  .jobSearchForm button {
    max-width: 100%;
  }
}

#jobResults {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.job-card {
  background: linear-gradient(145deg, #1c1c1e, #2c2c2e);
  color: #fff;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease-in-out;
  border: 1px solid #3a3a3c;
  cursor: pointer;
  position: relative;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(145deg, #2d2d30, #3a3a3c);
}

.job-card a {
  text-decoration: none;
  color: inherit;
}

.job-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #25A9F2;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.job-card a:hover h3 {
  color: #0091df;
}

.job-card p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.job-card p strong {
  color: #cccccc;
  font-weight: 500;
}

#jobResults+p {
  color: #bbb;
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .job-card h3 {
    font-size: 1.2rem;
  }

  .job-card p {
    font-size: 0.9rem;
  }
}

.messages {
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
  padding: 15px;
  font-family: 'Segoe UI', sans-serif;
}


.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.alert {
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

/* Success message */
.alert-success {
  background-color: #1e3d1e;
  border-color: #2ecc71;
  color: #adffb0;
}

/* Error message */
.alert-error,
.alert-danger {
  background-color: #3d1e1e;
  border-color: #e74c3c;
  color: #ffadad;
}

/* Info or default message */
.alert-info {
  background-color: #1e2b3d;
  border-color: #3498db;
  color: #aedcff;
}

/* Warning message */
.alert-warning {
  background-color: #3d321e;
  border-color: #f1c40f;
  color: #fff7c2;
}