.ranking-wrapper {
  width: 100%;
  border: 1px solid #f7f4f5;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #f7f4f5;
}

.ranking-item img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-item_recommend-title {
  background-color: var(--main-color);
  padding: 10px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  color: white;
}

.ranking-item_recommend-content {
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5px;
}

.ranking-item_recommend-content > div:last-of-type {
  margin-bottom: 10px;
}

.ranking-item_recommend-content .title {
  background-color: white;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 15px;
  /* margin-bottom: 10px; */
  display: flex;
  align-items: center;
}

.ranking-item_recommend-content .title .order {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  font-size: 20px;
  color: var(--main-color);
}

.ranking-item_recommend-content .title > div:nth-child(2) {
  font-size: 14px;
}
.ranking-item_recommend .action {
  display: flex;
  justify-content: center;
}

.ranking-item_recommend .action .button {
  height: auto !important;
  width: 250px;
  display: flex;
  margin: 0;
}

/* -------- */

.ranking-item_campaigns {
  background-color: #eddda1;
}

.ranking-item_campaigns img{
  width: 100%;
  object-fit: cover;
}

.ranking-item_campaigns .title {
  padding: 10px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  background: linear-gradient(0.25turn, #e8c166, #d9b05b, #caa150);
}

.ranking-item_campaigns .content {
  padding: 15px;
}

.ranking-item_campaigns .action {
  display: flex;
  justify-content: center;
  height: 85px;
}

.ranking-item_campaigns .action .button {
  width: 350px;
}

.ranking-item_campaigns .content .image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.ranking-item_campaigns .content .white-box {
  background-color: white;
  padding: 10px;
  text-align: center;
  color: red;
  font-weight: bold;
  margin: 10px 0;
  font-size: 15px;
}

.ranking-item_campaigns .content .list_icon_gift{
  display: flex;
  align-items: start;
}

.ranking-item_campaigns .content .list_icon_gift::before{
  content: '';
  background-image: url("/images/gift.png");
  background-size: 20px 20px;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 5px;
  flex: none;
}
/* ----------------- */

.ranking-item_ranking table {
  width: 100%;
  margin: 15px 0;
}

.ranking-item_ranking table th {
  background-color: var(--main-color);
  color: white;
  text-align: center;
  width: 30%;
  padding: 10px 0;
  border-right: 1.5px solid var(--light-blue-color);
  font-size: 15px;
}

.ranking-item_ranking table th:last-of-type {
  border-right: none;
}

.ranking-item_ranking table td:last-of-type {
  border-right: none;
}

.ranking-item_ranking table td {
  background: white;
  text-align: center;
  padding: 10px 0;
  border-right: 1.5px solid var(--light-blue-color);
}

.ranking-item_ranking .disabled {
  color: rgb(192, 192, 192);
}

.learnable-skills-title {
  background-color: var(--main-color);
  color: white;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  border-right: 1.5px solid var(--light-blue-color);
  font-size: 15px;
}

.learnable-skills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-bottom: 15px;
  gap: 8px;
  margin-top: 8px;
}

.learnable-skills > div {
  background: white;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1.5px solid rgb(190, 190, 190);
  border-radius: 10px;
}

.learnable-skills > div:nth-child(5) {
  grid-column: 2;
}

/* -------- */
.ranking-item_review .title {
  background-color: white;
  border-left: 5px solid var(--main-color);
  padding: 10px;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 18px;
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px !important;
  padding: 10px;
}

.swiper-slide img {
  width: 65px;
  height: 65px;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 16px !important;
  background-color: rgb(192, 192, 192);
  padding: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
}

.swiper-pagination-bullet-active {
  background: var(--main-color) !important;
}

.ranking-item > .action {
  height: 70px;
  display: flex;
  justify-content: center;
}

.ranking-item > .action .button {
  width: 350px;
}

.reasons-recommendation {
  width: 100%;
  margin-top: 17px;
  margin-bottom: 17px;
}

.reasons-recommendation .title {
  background-color: var(--main-color);
  padding: 10px;
  font-weight: bold;
  font-size: 18px;
  color: white;
  display: flex;
}
.reasons-recommendation .title .logo-reason{
  width: 24px;
  height: 24px;
  margin: 1px 6px 0px;
}
.reasons-recommendation .content {
  background: white;
  padding: 10px;
}

@media screen and (max-width: 690px) {
  .ranking-item {
    padding: 15px 0;
  }

  .ranking-item > div:first-of-type {
    flex-direction: column;
  }

  .ranking-item > div:first-of-type > div {
    flex: 1;
    text-align: center;
  }

  .ranking-item > div:first-of-type > div .title {
    flex: 1;
    text-align: left;
  }

  .learnable-skills {
    grid-template-columns: 1fr 1fr 1fr;
    border: none;
  }

  .learnable-skills > div:nth-child(5) {
    grid-column: auto;
  }
}

@media screen and (max-width: 500px) {
  .learnable-skills {
    grid-template-columns: 1fr 1fr;
    border: none;
  }

  .ranking-item_ranking table th {
    width: 35%;
    font-size: 14px;
  }
}

@media screen and (max-width: 380px) {
  .ranking-item_ranking table th {
    /* width: 40%; */
    font-size: 13px;
  }
}
