/* Contenedor principal de las tarjetas */
.view.view-ultimos-empleos-publicados {
  .view-content {
    display: flex;
    flex-wrap: wrap;
    margin: -12px;
  }
  .views-row {
    padding: 12px;
    width: 25%;
    box-sizing: border-box;
  }
}

@media (max-width: 991px) {
  .view.view-ultimos-empleos-publicados {
    .views-row {
      width: 50%; /* 2 columnas en tablet */
    }
  }

}

@media (max-width: 575px) {
  .view.view-ultimos-empleos-publicados {
    .views-row {
      width: 100%; /* 1 columna en móvil */
    }
  }
}

/* Tarjeta de empleo */
.job-card {
  background: #ffffff;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.16s ease, box-shadow 0.16s ease;

  .card {
    display: flex;
    flex-direction: column;
  }

  img.company-logo {
    border: 1px solid #eee;
    border-radius: 8px;
  }

  /* Descripción */
  .muted {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limita a 3 líneas */
    -webkit-box-orient: vertical;
  }
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(11, 99, 211, 0.08);
}

/* Meta info (logo + título + empresa) */
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* Logo o inicial de la empresa */
.company-initials {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #eef6ff;
  color: #0b63d3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Info de meta (título + empresa) */
.meta-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.job-title {
  font-size: 14px;
  font-weight: 700;
  color: #0b63d3;
  margin: 0 0 4px;
  line-height: 1.2;
}

.company-name {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}



/* Footer (ubicación + tipo de empleo) */
.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.job-location {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  gap: 6px;
}

.job-location svg {
  width: 14px;
  height: 14px;
  stroke: #6b7280;
}

.job-type {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

@media (min-width: 768px) {
  .job-card {
    .card {
      min-height: 156px;
    }
  }
}

/* Responsive */
@media (max-width: 991px) {
  .job-card {
    width: 50%;
  }
}
@media (max-width: 575px) {
  .job-card {
    width: 100%;
  }
}
