:root {
    --page-bg-1: #d6f1ff;
    --page-bg-2: #9ad3f3;
    --page-bg-3: #f7fbff;
}

body {
    background-color: #fff;
    background-image: none;
}
.company-card-thumb {
  flex: 0 0 auto;
  width: 260px;
  max-width: 50%;
  height: 200px;
  overflow: hidden;
}

.company-card-thumb > a {
  display: block;
  width: 100%;
  height: 100%;
}

.company-card-thumb.is-empty {
  width: 260px;
  max-width: 50%;
}

.company-card-thumb img,
.company-card-thumb .no-photo {
  width: 100% !important;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.company-card-thumb .no-photo {
  position: relative;
  text-align: center;
  background: #ecf0f1;
  flex: 0 0 100%;
  min-width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.company-card-thumb .no-photo i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
}

.company-card-item {
  border-radius: 12px;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid #e9ecef;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.company-card-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.company-card-item .row {
  align-items: stretch;
  height: 100%;
}

.company-card-item .card-body {
  padding: 10px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  justify-content: space-between;
}

.company-card-item .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
  color: #2c3e50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-card-item .card-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.company-card-item .card-title a:hover {
  color: #2ecc71;
}

.company-card-item .card-text {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #7f8c8d;
}

.company-card-item .company-card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  margin-bottom: 8px;
}

.company-card-item .btn {
  padding: 7px 16px !important;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  margin-left: auto !important;
  margin-right: 0 !important;
  width: auto !important;
  max-width: fit-content;
  flex-shrink: 0;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.company-card-item .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.company-card-item .btn i {
  font-size: 0.85em;
  margin-left: 0 !important;
  vertical-align: middle;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .company-card-item .row,
  .company-card-item .row.g-0 {
    flex-direction: column !important;
  }

  .company-card-item .row > .col,
  .company-card-item .row > .col-auto {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .company-card-thumb {
    width: 100%;
    max-width: 100%;
  }

  .company-card-thumb img,
  .company-card-thumb .no-photo {
    height: 180px;
    min-height: 180px;
  }

  .company-card-item {
    height: auto !important;
    max-height: none !important;
  }

  .company-card-item .card-body {
    height: auto;
  }
}
