.section-partners {
  padding: 10rem 0;
}
.partners__textbox {
  padding-top: 10rem;
}
.partners-desc {
  font-size: 1.5rem;
  line-height: 3rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.51);
  margin-top: 1.4rem;
}

.hidden {
  display: none;
}

.pagination-container {
  width: 100%;
  display: flex;

  align-items: center;
  justify-content: center;
  margin: 8.7rem auto 0;
  gap: 1.3rem;
}
#paginated-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
}
.pagination-number,
.pagination-button {
  font-size: 1.8rem;
  font-weight: 600;
  background-color: transparent;
  border: none;
  /* margin: 0.25rem 0.25rem; */
  cursor: pointer;
  /* color: #212b36; */
  height: 3.9rem;
  width: 3.9rem;
  border: 0.1rem solid #dfe3e8;
  border-radius: 0.4rem;
  background-color: #fff;
  border-radius: 0.4rem;
}
.section-merchants {
  padding: 10rem 0;
  background: rgba(196, 193, 193, 0.37);
}
#pagination-numbers {
  display: flex;
  gap: 1.3rem;
}
.merchants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
.no-merchants-message {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.9px;
}
.merchants-heading {
  margin-bottom: 2rem;
}
.merchant-box {
  max-width: 20.8rem;
  height: 20.143rem;
  background: #ffffff;
  border-radius: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.merchant-box > img {
  width: 12rem;
  height: 12rem;
  /* width: 100%; */
  margin-bottom: 2rem;
}
.merchant__name {
  font-size: 2rem;
  font-weight: 600;
  color: #003569;
}
.pagination-number:hover,
.pagination-button:not(.disabled):hover {
  /* background: #c4cdd5; */
}
.pagination-button {
  color: #c4cdd5;
}
.pagination-button:disabled {
  background: #919eab;
  color: #c4cdd5;
}

.pagination-number.active {
  color: #4200ff;
  border: 0.1rem solid #4200ff;
}
.merchant__list {
  position: relative;
}
.main-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  color: #003569;
  width: 80%;
}
.main-desc {
  font-weight: 500;
  line-height: 30px;
  font-size: 15px;
  color: #00000082;
  width: 80%;
}
.main-btn button {
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  background: #01934a;
  padding: 1rem;
  border: none;
  border-radius: 10px;
}
.main-pictures {
  position: relative;
  width: 50%;
}

.sort {
  text-align: right;
  font-weight: 600;
  font-size: 18px;
  line-height: 70px;
  color: #003569f2;
  margin-bottom: 2rem;
  padding-right: 6%;
}
.sort span {
  font-weight: 400;
}
.sort i {
  cursor: pointer;
}
.brands {
  display: none;
}
.brands.active {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  margin-bottom: 3rem;
  align-items: center;
}
.brands .brand {
  height: 200px;
  width: 250px;
  background: #d9d9d9;
  border-radius: 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.brands .brand img {
  width: 50%;
}
.brand .brand-desc {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #003569;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: fit-content;
  height: fit-content;
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: Dark Grey / 400;
}
.pages.active {
  background: #003569;
  color: white;
}
.pages:hover {
  background: #919eab;
  transition: 0.5s;
  transform: scale(1.2);
}
.section-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 8.9rem 0;
}
.partner .main-title {
  text-align: center;
}
.partner-desc {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.9);
  max-width: 87rem;
  margin: 2rem 0 4.9rem;
  text-align: center;
}
.partner-btn:link,
.partner-btn:visited {
  padding: 1.8rem 3.8rem;
  background: #01934a;
  border: none;
  color: #fff;
  font-weight: 400;
  display: inline-block;
  text-decoration: none;
  font-size: 1.6rem;
  line-height: 24px;
  border-radius: 1rem;
}

@media screen and (max-width: 1104px) {
  .section-partners {
    padding: 5.7rem 0;
  }
  .partners__textbox {
    padding-top: 0;
  }
  .main-pictures {
    width: 100%;
  }
  .section-merchants {
    padding: 5rem 0;
  }
  .main-pictures > img {
    width: 80%;
  }
}
@media screen and (max-width: 992px) {
  #paginated-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .merchant-box {
    margin: 0 auto;
    width: 90%;
  }
  .sort {
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  .section-partner {
    padding: 5rem 0;
  }
  #paginated-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .pagination-container {
    margin: 4rem auto 0;
  }
  .pagination-number,
  .pagination-button {
    font-size: 1.4rem;
    height: 3rem;
    width: 3rem;
  }
  .merchant-box {
    /* height: 16rem; */
    height: 12rem;
  }
  .merchant-box > img {
    height: 7rem;
  }
  .merchant__name {
    font-size: 1.6rem;
  }
  .main-pictures > img {
    width: 100%;
  }
  .partner-btn:link,
  .partner-btn:visited {
    padding: 1.5rem 2.5rem;
  }
}
