.careers-image {
  background-image: url("./asserts/services-image.png");
}
.careers-image h1 {
  font-size: 3rem;
  width: 60%;
}
.role-container {
  /* max-width: 1200px; */
  margin: auto;
  text-align: center;
  padding-top: 10%;
  padding-bottom: 5%;
  border-radius: 120px;
  margin-top: -10%;
  position: relative;
  z-index: 1;
  background-color: white;
  width: 100vw;
}

.role-container h1 {
  font-size: 2rem;
  font-weight: bold;
    color: #333;
}

.role-container h1 span {
  color: #ff6d31;
}

p.description {
  margin: 15px 0 40px;
  font-size: 1rem;
  color: #555;
}

.role-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.role-card {
  position: relative;
  background: #111;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  width: 300px;
  max-width: 90%;
  height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.role-card img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.role-card:hover img {
  transform: scale(1.05);
}

.role-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  box-sizing: border-box;
}

.role-card .role-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.role-card p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ddd;
}

.role-card button {
  padding: 10px 20px;
  background: linear-gradient(90deg, #ff4b00, #ffbda2); /* bright gradient */
  border: none; /* remove dark border */
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 75, 0, 0.4);
}

.role-card button:hover {
  background: linear-gradient(90deg, #ff6d31, #ffc9a1); /* slightly lighter gradient */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 75, 0, 0.6);
}



.join-network {
  margin-top: 50px;
}

.join-network h2 {
  font-size: 1.5rem;
  color: #333;
}

.join-network p {
  margin: 15px 0;
  color: #555;
}

.join-network a {
  padding: 12px 25px;
  font-size: 1rem;
  background: transparent;
  border: 2px solid #ff6d31;
  color: #ff6d31;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 768px) {
  .role-container {
    border-radius: 0px;
  }
  .role-card {
    width: 90%;
    max-width: 100%;
    height: auto; /* let height adjust based on content */
    margin: 15px auto;
    border-radius: 15px;
  }

  .role-card img {
    width: 100%;
    height: 250px; /* fixed reasonable height */
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  .role-card .overlay {
    position: relative; /* no absolute positioning */
    bottom: auto;
    padding: 15px;
    backdrop-filter: blur(6px);
    border-radius: 0 0 15px 15px;
  }

  .role-card .role-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .role-card button {
    display: block;
    margin: 0 auto;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
