/* ================================================================
   LEADERBOARD PAGE
   ================================================================ */
#leaderboard-page {
  box-shadow: 0px 0px 12.94px 0px #A7ABB04D;
}

.lb-intro {
  padding: 3rem 3rem 1.5rem;
}

.lb-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007CC4;
  margin-bottom: 1rem;
}

.lb-body {
  padding: 0 3rem 3rem;
}

/* ---- Category tabs ---- */
.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.lb-tabs .nav-item {
  flex: 1 1 0;
}

.lb-tabs .nav-link {
  width: 100%;
  background-color: #E5F2FA;
  color: var(--teal);
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1rem;
  font-family: Roboto;
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
  text-transform: uppercase;
  box-shadow: 0px 0px 4px 0px #A7ABB04D;
  transition: background-color 0.3s, color 0.3s;
}

.lb-tabs .nav-link:hover {
  background-color: #CFE6F5;
}

.lb-tabs .nav-link.active {
  background-color: var(--teal);
  color: #fff;
}

/* ---- Table ---- */
.lb-card {
  border-radius: 12px;
  box-shadow: 0px 0px 12.94px 0px #A7ABB04D;
}

.lb-table {
  margin-bottom: 0;
  font-family: Roboto;
}

/* Bootstrap 5.1 draws a 2px currentColor border above tbody */
.lb-table > :not(:first-child) {
  border-top: 0;
}

.lb-table thead th {
  background-color: #8DC43C;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  padding: 1rem 1.5rem;
  border-bottom: none;
  white-space: nowrap;
}

.lb-table thead th i {
  margin-right: 0.5rem;
}

.lb-table thead th:first-child {
  border-top-left-radius: 12px;
}

.lb-table thead th:last-child {
  border-top-right-radius: 12px;
}

.lb-table tbody td {
  padding: 1.25rem 1.5rem;
  vertical-align: middle;
  font-size: 18px;
  line-height: 150%;
  border-bottom: 1px solid #EEF2F7;
}

.lb-table tbody tr:last-child td {
  border-bottom: none;
}

.lb-col-rank {
  width: 110px;
}

.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}

.lb-rank-1 { background-color: #F2B705; }
.lb-rank-2 { background-color: #A7ABB0; }
.lb-rank-3 { background-color: #CD7F32; }

.lb-team {
  font-weight: 600;
  color: #212121;
}

.lb-points {
  font-weight: 700;
  color: #8DC43C;
  white-space: nowrap;
}

.lb-steps {
  font-weight: 700;
  color: var(--gov);
  white-space: nowrap;
}

.lb-note {
  margin: 1.5rem 0 0;
  font-family: Roboto;
  font-size: 16px;
  line-height: 150%;
  color: #6c757d;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .lb-tabs {
    gap: 0.75rem;
  }

  .lb-tabs .nav-link {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .lb-intro {
    padding: 2rem 1.5rem 1rem;
  }

  .lb-main-title {
    font-size: 2rem;
    padding-top: 1.5rem;
    text-align: center;
  }

  .lb-body {
    padding: 0 1rem 2rem;
  }

  .lb-tabs {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  /* 3 + 2 pills per row */
  .lb-tabs .nav-item {
    flex: 1 1 calc(33.333% - 0.5rem);
  }

  .lb-tabs .nav-link {
    padding: 0.6rem 0.5rem;
    font-size: 13px;
  }

  .lb-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 13px;
  }

  .lb-table thead th i {
    margin-right: 0.25rem;
  }

  .lb-table tbody td {
    padding: 0.85rem 0.5rem;
    font-size: 13px;
  }

  .lb-col-rank {
    width: 48px;
  }

  .lb-rank {
    width: 28px;
    height: 28px;
  }

  .lb-note {
    font-size: 13px;
  }
}
