/* ========================================
JOB OPENINGS / VACANTS
======================================== */

/* Hero Section */
.job-opening-hero {
  background: linear-gradient(135deg, #f5f0fb 0%, #fde8f0 100%);
  padding: clamp(60px, 10vw, 120px) 0;
  margin-bottom: clamp(40px, 8vw, 80px);
}

/* El contingut mai no ocupa el 100%: contenidor centrat amb marge lateral */
.job-opening-hero > .container-amp,
.job-opening-content > .container-amp {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
  box-sizing: border-box;
}

.job-opening-hero-content {
  max-width: 800px;
}

.job-opening-category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #e61881;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.job-opening-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #001a2e;
}

.job-opening-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.job-opening-date {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

/* Content Section */
.job-opening-content {
  padding: clamp(40px, 8vw, 80px) 0;
}

.job-opening-body {
  max-width: 100%;
  margin-bottom: 60px;
}

.job-opening-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #e61881;
}

.job-opening-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #001a2e;
}

.job-opening-body p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.job-opening-body ul,
.job-opening-body ol {
  font-size: 1rem;
  line-height: 1.6;
  margin-left: 20px;
  margin-bottom: 15px;
}

.job-opening-body li {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

/* CTA Section */
.job-opening-cta {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

/* Job Openings List */
.job-openings-section {
  padding: clamp(40px, 8vw, 80px) 0;
}

.job-openings-list {
  max-width: 900px;
}

/* Job Opening Card */
.job-opening-card {
  border-top: 1px solid #0a042a;
  border-bottom: 1px solid #0a042a;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: all 0.3s ease;
}

/* Evita el doble filet entre vacants consecutives */
.job-opening-card + .job-opening-card {
  border-top: none;
}

.job-opening-card-content {
  display: flex;
  flex-direction: column;
}

.job-opening-card-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #0a042a;
  text-decoration: none;
  display: block;
}

.job-opening-card-date {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
  margin-bottom: 15px;
  display: block;
}

.job-opening-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
}

.job-opening-card-link {
  align-self: flex-start;
  font-size: 0.95rem;
  font-weight: 400;
  color: #e61881;
  text-decoration: none;
  transition: all 0.8s ease;
  padding: 0;
  border-bottom: 1px solid transparent;
}

.job-opening-card-link:hover {
  color: #c9115d;
  border-bottom-color: #e61881;
}

/* No Job Openings Message */
.no-job-openings {
  padding: clamp(60px, 10vw, 100px) 0;
  text-align: center;
}

.no-positions-message {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .job-opening-hero {
    padding: 40px 0;
  }

  .job-opening-content {
    padding: 30px 0;
  }

  .job-opening-title {
    font-size: 1.8rem;
  }

  .job-opening-card {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

}

/* Button Styles (if not already defined) */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #001a2e;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #e61881;
  color: white;
  border-color: #e61881;
}

.btn-primary {
  background-color: #e61881;
  color: white;
}

.btn-primary:hover {
  background-color: #c9115d;
  color: white;
}

/* Nota fixa sota les vacants (Work with us) */
.careers-nota-fixa {
  margin-top: clamp(24px, 4vw, 40px);
}

.careers-nota-fixa a {
  color: #e61881;
  text-decoration: underline;
}

.careers-nota-fixa a:hover {
  color: #c9115d;
}
