.cariera {
  padding: 40px;
  background: #f5f8fc;
  font-family: Arial, sans-serif;
  text-align: center;
}

.cariera h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #004a99;
}

.job-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1200px; /* 3 x 280px + gap-uri ≈ încape perfect 3 pe rând */
  margin: auto;      /* centrează grila */
}

.job-card {
  background: white;
  border-radius: 12px;
  padding: 30px; /* mai aerisit */
  min-height: 450px; /* mai înalte */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card h3 {
  color: #004a99;
}

.job-card ul {
  text-align: left;
  padding-left: 20px;
  margin-bottom: 15px;
}
.job-card h1 {
  font-size: 0.95rem;
  
  margin-bottom: 5px;
}
.job-card p {
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 50px;
}

.aplica-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  font-size: 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: background 0.3s ease;
}

.aplica-btn:hover {
  background-color: #0056b3;
}
.job-description {
  max-height: 250px; /* înălțimea la care vrei să fie "tăiat" textul */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

/* efect de umbră jos (opțional) ca să indice că mai e text */
.job-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, white, transparent);
  pointer-events: none;
}

.job-card.expanded .job-description {
  max-height: 1000px; /* suficient de mare pentru text complet */
}

.job-card.expanded .job-description::after {
  display: none; /* dispare umbra */
}

.toggle-btn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
   margin-bottom: 30px;
  transition: color 0.3s;
}

.toggle-btn:hover {
  color: #0056b3;
}

/* Popup */
#popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  animation: slideUp 0.5s ease;
  position: relative;
}

#popup-close {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cariera-intro {
    padding: 60px 20px;
    background: #fff;
    color: #000;
    position: relative;
    overflow: hidden;
  }

  .cariera-intro-content {
    max-width: 900px;
    margin: auto;
  }

  .intro-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    animation: titleSlide 1.5s ease forwards;
  }

  .intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
  }

  .intro-text:nth-of-type(2) { animation-delay: 0.3s; }
  .intro-text:nth-of-type(3) { animation-delay: 0.6s; }
  .intro-text:nth-of-type(4) { animation-delay: 0.9s; }

  .align-left {
    text-align: left;
  }

  .blue-text {
    color: #0073e6; /* albastru */
    font-weight: 600;
  }

  /* Animatii */
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes titleSlide {
    from {
      opacity: 0;
      transform: translateY(-50px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Distanța față de casete */
  .oportunitati-cariera {
    margin-top: 50px;
  }
  