/* Match the brand cards on the Chinese pages of the Xiecheng international site. */
.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.brand-directory-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px;
  border: 1px solid #e4eaf1;
  border-radius: 15px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.brand-directory-card:hover {
  transform: translateY(-2px);
  border-color: #cbd8e9;
  box-shadow: 0 12px 32px rgba(18, 58, 134, .09);
}

.brand-directory-card:focus-visible {
  outline: 2px solid #177e9b;
  outline-offset: 3px;
}

.brand-directory-mark {
  display: flex;
  align-items: center;
  height: 72px;
  margin-bottom: 14px;
}

.brand-directory-mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(165px, 100%);
  max-height: 58px;
  object-fit: contain;
}

.brand-directory-card h3 {
  margin: 0 0 7px;
  color: #0e2a6e;
  font-size: 18px;
  font-weight: 700;
}

.brand-directory-card p {
  margin: 0 0 12px;
  color: #566375;
  font-size: 14px;
  font-weight: 400;
  text-wrap: pretty;
}

.brand-directory-action {
  margin-top: auto;
  color: #177e9b;
  font-size: 13.5px;
  font-weight: 750;
}

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

@media (max-width: 620px) {
  .brand-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-directory-card { transition: none; }
  .brand-directory-card:hover { transform: none; }
}
