/* Bolsa de Trabajo styles: responsive and component-scoped */

/* Hero section */
.bolsa-hero {
  background: linear-gradient(180deg, #f7fbff 0, #ffffff 100%);
}

.bolsa-hero-row {
  min-height: 380px;
}

@media (min-width: 992px) {
  .bolsa-hero-row {
    min-height: 500px;
  }
}

/* Common image helper */
.img-cover-left {
  object-fit: cover;
  object-position: left center;
}

/* Ensure the hero image scales appropriately */
.bolsa-hero .hero-img {
  height: auto;
}

@media (min-width: 992px) {
  .bolsa-hero .hero-img {
    height: 80%;
  }
}

/* Circular badge except top-right corner */
.bolsa-badge {
  border-radius: 50%;
  border-top-right-radius: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  line-height: 1;
  aspect-ratio: 1 / 1;
  width: fit-content;
  min-width: 180px;
  padding: 12px 16px;
  box-sizing: border-box;
  overflow: hidden;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 100;
}

.bolsa-badge > * {
  margin: 0;
  line-height: 1;
  display: block;
}

/* On very small screens, allow a bit of breathing room if needed */
@media (max-width: 575.98px) {
  .bolsa-badge {
    min-width: 150px;
  }
}

/* Form: file dropzone */
.dropzone {
  border: 2px dotted rgba(0, 0, 0, 0.25);
  min-height: 200px;
}

@media (max-width: 991.98px) {
  .dropzone {
    min-height: 160px;
  }
}

/* Form: preview image box */
#job-application img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.job-preview {
  background-color: #f8f9fa;
}

.job-preview.rounded {
  overflow: hidden;
}

@media (min-width: 992px) {
  .job-preview {
    height: 100%;
    max-height: 710px;
  }
}

@media (max-width: 991.98px) {
  .job-preview {
    aspect-ratio: 4 / 3;
    width: 100%;
  }
}

/* Soft card touch if not present globally */
.soft-card {
  border-radius: 1rem;
}
