.company-directory {
  background: linear-gradient(180deg, #eeedf5, #f6f4f1);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.company-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(64, 59, 176, .12);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(41, 39, 70, .08);
}

.company-card h3 {
  margin: 0;
  padding-right: 44px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.company-activity,
.company-location {
  margin: 0;
  color: #55586b;
  font-size: .92rem;
}

.company-proof {
  margin-top: auto;
  color: #77798a;
  font-size: .76rem;
}

.company-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
  padding: 11px 14px;
  border: 1px solid #4f49bd;
  border-radius: 999px;
  background: #514bc1;
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(69, 65, 166, .18);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.company-cta:hover {
  background: #403aab;
  box-shadow: 0 13px 28px rgba(69, 65, 166, .25);
  transform: translateY(-1px);
}

.company-cta:focus-visible {
  outline: 3px solid rgba(81, 75, 193, .28);
  outline-offset: 3px;
}

.company-rank {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #b1aecf;
  font-size: .83rem;
  font-weight: 900;
}

.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.company-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eceaf8;
  color: #4541a6;
  font-size: .72rem;
  font-weight: 850;
}

.company-badge.rge {
  background: #e1efe7;
  color: #286344;
}

.directory-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid #5853c9;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, .72);
  color: #55586b;
  font-size: .86rem;
}

@media (max-width: 1050px) {
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .company-grid { grid-template-columns: 1fr; }
  .company-card { padding: 21px; }
}
