/* AGM Global Vision partner card on the homepage. */
.usmg-agm-section {
  padding: 0 0 4rem;
  background: #fafafa;
}

.usmg-agm-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #292d31;
  border-radius: .5rem;
  background: #111417;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(10, 12, 14, .24);
}

.usmg-agm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 12, 14, .98) 0%, rgba(10, 12, 14, .9) 55%, rgba(10, 12, 14, .28) 100%);
  pointer-events: none;
}

.usmg-agm-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.usmg-agm-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.08);
  transition: transform .45s ease, filter .45s ease;
}

.usmg-agm-card:hover .usmg-agm-card__media img,
.usmg-agm-card:focus-visible .usmg-agm-card__media img {
  transform: scale(1.025);
  filter: saturate(.9) contrast(1.1);
}

.usmg-agm-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.usmg-agm-card__eyebrow {
  color: #f04444;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.usmg-agm-card__title {
  margin-top: .6rem;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
}

.usmg-agm-card__copy {
  max-width: 34rem;
  margin-top: .85rem;
  color: #d9dde0;
  font-size: .9rem;
  line-height: 1.65;
}

.usmg-agm-card__cta {
  align-self: flex-start;
  margin-top: 1.1rem;
  padding-bottom: .22rem;
  border-bottom: 2px solid #ed343b;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.usmg-agm-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 2rem 2rem 0;
  padding: 1.25rem;
  border-left: 4px solid #ed343b;
  background: rgba(255, 255, 255, .95);
  transition: background-color .25s ease;
}

.usmg-agm-card:hover .usmg-agm-card__brand,
.usmg-agm-card:focus-visible .usmg-agm-card__brand {
  background: #fff;
}

.usmg-agm-card__brand img {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.usmg-agm-card:focus-visible {
  outline: 3px solid #ed343b;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .usmg-agm-section { padding-bottom: 3rem; }
  .usmg-agm-card { grid-template-columns: 1fr; }
  .usmg-agm-card::after { background: rgba(10, 12, 14, .9); }
  .usmg-agm-card__content { padding: 1.5rem 1.25rem .75rem; }
  .usmg-agm-card__brand {
    margin: .75rem 1.25rem 1.25rem;
    padding: 1rem;
    border-top: 4px solid #ed343b;
    border-left: 0;
  }
}
