/* Companies Page Specific Styles */

/* Company Card */
.company-card {
  background: var(--color-white);
  border: 2px solid #dee2e6;
  border-radius: var(--radius);
  padding: 1rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-fast) var(--ease);
  outline: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
}

.company-card:hover {
  border: 2px solid transparent;
  background: linear-gradient(var(--color-white), var(--color-white)) padding-box,
              var(--brand-grad) border-box;
  border-radius: var(--radius);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--elev-1);
}

.company-card:focus {
  outline: none !important;
  box-shadow: var(--elev-1) !important;
  border: 2px solid transparent;
  background: linear-gradient(var(--color-white), var(--color-white)) padding-box,
              var(--brand-grad) border-box;
  border-radius: var(--radius);
}

/* Gradient title on hover */
.company-card:hover .company-card__title,
.company-card:focus .company-card__title {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Company card title */
.company-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 0rem;
}

/* Company card meta */
.company-card__meta {
  font-size: 0.8125rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  height: auto;
  overflow: hidden;
  line-height: 1.4;
}

/* Company card salary/counts */
.company-card__counts {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
  height: auto;
}

/* Company card badges */
.company-card__badges {
  margin-top: auto;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  overflow: hidden;
}

.company-card__badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.company-card__badge--hot {
  background: rgba(229, 57, 53, 0.1);
  color: var(--color-red);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .company-card {
    padding: 0.75rem;
  }
  
  .company-card__title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .company-card__meta {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .company-card__counts {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }
  
  .company-card__badge {
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
    margin-right: 0.25rem;
    margin-bottom: 0.125rem;
  }
}

@media (min-width: 768px) {
  .company-card {
    /* min-height: 220px; */
  }
}