.faction-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  font-family: "Open Sans", sans-serif;
  padding-bottom: 20px;
}

.faction {
  box-sizing: border-box;
  width: calc(100% / 3 - 60px / 3);
  transition: 0.3s;
}

.faction-wrapper {
  display: flex;
  flex-direction: column;
}

.faction:hover {
  transform: translateY(-10px);
}

.faction:hover .faction-wrapper {
  box-shadow: 0 5px 15px var(--accent-glow);
}

.faction img {
  width: 100%;
}

.faction-content {
  padding: 20px 30px;
  background: #1e1c29;
}

.faction-content h3 {
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 10px;
}

.faction-content p {
  margin: 0;
  font-size: 14px;
}

.faction-content .faction-description {
  line-height: 20px;
}

.faction-content .get-reward-label {
  color: #42c77e;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.faction-content .price {
  position: relative;
  color: var(--accent-color);
  text-transform: uppercase;
  margin: 0 auto;
  width: fit-content;
  padding-left: 20px;
}

.faction-content .price::before {
  position: absolute;
  content: url("../images/icons/gold.png");
  margin-right: 5px;
  left: -18px;
  top: calc(50% - 21.5px);
}

@media (max-width: 1000px) {
  .faction-grid {
    gap: 20px;
  }

  .faction {
    width: calc(100% / 2 - 40px / 2);
  }
}

@media (max-width: 700px) {
  .faction-grid {
    flex-direction: column;
    align-items: center;
  }

  .faction {
    width: 100%;
    max-width: 450px;
  }
}
