/* SECTION: CLASSes */
.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 245 / 250;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;

  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

.partner-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 8px;
  background-color: white;
  border-radius: 8px;
  font-size: 14px;
  color: #595959;
}

.partner-image {
  width: 100%;
  aspect-ratio: 245 / 162;
  object-fit: cover;
  flex-shrink: 0;
}

.partner-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin: auto 0;
}

/* SECTION: IDs */
#partners-button-row-container {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;

  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  transition: justify-content 0.2s;
}

#partners-button-row-container button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  cursor: pointer;
  background-color: transparent;
  font-size: 18px;
  color: #000000;
  border: none;
  border-radius: 8px;
  transition: all 0.2s;
}

#partners-button-row-container button .button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: scroll;
}

#partners-button-row-container button .button-label {
  text-wrap: nowrap;
}

#partners-button-row-container button.active {
  background-color: #ffffff;
  font-weight: 700;
}

#partners-button-row-container button img {
  aspect-ratio: 1;
  height: 24px;
}

#partners-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 16px;
  row-gap: 24px;

  @media screen and (max-width: 1024px) {
    grid-template-columns: repeat(4, 1fr);
  }

  @media screen and (max-width: 960px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SECTION: ANIMATIONs */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
