/* -----------------------------
  Jobs Section Styles
 ----------------------------- */
.jobs {
  padding-top: 180px;
  background-image: url('/images/Baahrain.jpg');
  background-size: cover;
  background-position: inherit;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}
.jobs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}
.jobs-content {
  background-color: rgba(17, 121, 226, 0.85);  /* semi-transparent background */
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0.9;
  font-size: 2.5rem;
  z-index: 2;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.home {
  margin-top: 20px;
  position: relative;
  z-index: 2;  /* makes it appear above the background overlay */
}
.home-span{
  color: rgba(17, 121, 226, 0.85);
  font-weight:600;
  font-size: 1.2rem;
}
.home-btn {
  display: inline-block;
  background-color: rgba(224, 224, 224, 0.6);
  color: #020202;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 15px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 2;  /* make sure it's clickable */
}
.home-btn:hover,.jobs-content:hover {
  background-color: #3b86f6;
  color: #fff;
}
.main-content {
  padding: 0;
  margin: 0 auto;
}
.jobs-container {
  max-width: 1100px;
  padding: 20px;
  margin: 0 auto;
}
.jobs-container p {
  font-size: 15.5px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #3c3c3c;
  margin-bottom: 10px;
  line-height: 1.6rem;
}
.jobs-container h2 {
  color: #3b86f6;
  font-size: 1.4rem;
  padding-bottom: 10px;
}
.jobs-container a{
  text-decoration: none;
  color: #3b86f6;
}
/* For screens up to 1024px (laptops/tablets) */
@media screen and (max-width: 1024px) {
  .jobs {
    height: 350px;
    padding: 15px;
  }
  .jobs-content {
    font-size: 2rem;
  }
}

/* For screens up to 786px (tablets) */
@media screen and (max-width: 786px) {
  .jobs {
    height: 300px;
  }
  .jobs-content {
    font-size: 1.6rem;
    padding: 8px;
  }
  .home-btn {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}

/* For screens up to 480px (mobile phones) */
@media screen and (max-width: 480px) {
  .jobs {
    height: 250px;
    padding: 10px;
  }
  .jobs-content {
    font-size: 1.3rem;
    padding: 6px;
  }
  .home-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 10px;
  }
  .jobs-container h2 {
    font-size: 1.2rem;
  }
}
