/* ==========================================================================
   SHB Star 2026 – Bảng xếp hạng + Giải tập thể
   ========================================================================== */

/* --------------------------------------------------------------------------
   Khung chung Frame 419 – nền gradient trải suốt Wall + BXH + Giải tập thể
   -------------------------------------------------------------------------- */
.star-inspiration {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 233, 218, 0.2) 0%,
    #f5c9aa 100%
  );
}

/* --------------------------------------------------------------------------
   Bảng xếp hạng
   -------------------------------------------------------------------------- */
.star-bxh {
  position: relative;
  z-index: 2;
  padding: 64px 0 0;
}

.star-bxh__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 460px;
  max-width: 100%;
  margin: 0 auto 48px;
}

.star-bxh__title {
  margin: 0;
  width: 100%;
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  color: var(--raw-navy);
  text-align: center;
}

.star-bxh__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 70px;
  padding: 12px;
  margin: 0;
  border-radius: 40px;
  background: var(--star-white);
  list-style: none;
  --star-tab-pill: var(--raw-orange-light);
}

.star-bxh__tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 32px;
  background: none;
  font-family: var(--star-font-heading);
  font-weight: var(--font-semibold);
  font-size: var(--h6-size);
  line-height: var(--h6-line);
  color: var(--raw-tan);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease;
}

.star-bxh__tab:focus,
.star-bxh__tab:focus-visible {
  outline: none;
  box-shadow: none;
}

.star-bxh__tab.active {
  color: var(--star-white);
}

/* --- Lưới bảng ------------------------------------------------------------- */

.star-bxh__grid {
  position: relative;
}

.star-bxh__swiper {
  width: 100%;
  overflow: hidden;
}

.star-bxh__swiper .swiper-wrapper {
  align-items: stretch;
}

.star-bxh__swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* --- Một bảng -------------------------------------------------------------- */
.star-bxh__table {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  padding-top: 36px;
}

.star-bxh__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  width: 180px;
  height: 57px;
  padding: 8px 0 0 24px;
  background: url("../images/bxh-ribbon.svg") no-repeat 0 0 / 180px 57px;
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: var(--star-white);
  text-transform: uppercase;
}

.star-bxh__card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  padding: 24px;
  border-radius: 0 48px 16px 16px;
  background: var(--star-white);
}

.star-bxh__kicker {
  margin: 0 0 4px;
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: var(--pr-100);
  text-transform: uppercase;
}

.star-bxh__name {
  margin: 0 0 16px;
  font-family: var(--star-font-heading);
  font-weight: var(--font-semibold);
  font-size: 24px;
  line-height: 30px;
  color: var(--raw-navy-3);
}

.star-bxh__list {
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--raw-grey);
  list-style: none;
}

.star-bxh__card > .star-bxh__list {
  margin-top: auto;
  max-height: calc(1px + 16px + 56px * 5 + 8px * 4);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--raw-grey-dark) var(--raw-grey);
}

.star-bxh__card > .star-bxh__list::-webkit-scrollbar {
  width: 4px;
}

.star-bxh__card > .star-bxh__list::-webkit-scrollbar-track {
  background: var(--raw-grey);
  border-radius: 80px;
}

.star-bxh__card > .star-bxh__list::-webkit-scrollbar-thumb {
  background: var(--raw-grey-dark);
  border-radius: 80px;
}

.star-bxh__item + .star-bxh__item {
  margin-top: 8px;
}

.star-bxh__row {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star-bxh__rank {
  flex: 0 0 32px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pr-100);
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: var(--star-white);
}

.star-bxh__rank--alt {
  background: var(--pr-17);
  color: var(--pr-100);
}

.star-bxh__person {
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--raw-navy-3);
}

.star-bxh__unit {
  margin: 0;
  padding-left: 36px;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--se-70);
}

/* --- Dots ------------------------------------------------------------------ */
.star-bxh__dots {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin: 40px 0 0;
}

.star-bxh__dots .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--pr-40);
  opacity: 1;
}

.star-bxh__dots .swiper-pagination-bullet-active {
  background: var(--pr-100);
}

/* --------------------------------------------------------------------------
   Giải tập thể
   -------------------------------------------------------------------------- */
.star-team {
  position: relative;
  z-index: 2;
  /* Ribbon absolute trên card → chừa padding đủ 2 đầu section */
  padding: 64px 0;
}

.star-team__title {
  margin: 0 0 48px;
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  color: var(--raw-navy);
  text-align: center;
}

.star-team__grid {
  position: relative;
}

.star-team__swiper {
  width: 100%;
  overflow: hidden;
}

.star-team__swiper .swiper-slide {
  height: auto;
}

.star-team__item {
  position: relative;
  width: 100%;
  padding-top: 34px;
}

.star-team__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  width: 147px;
  height: 57px;
  padding: 8px 0 0 24px;
  background: url("../images/bxh-ribbon.svg") no-repeat 0 0 / 147px 57px;
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: var(--star-white);
  text-transform: uppercase;
}

.star-team__card {
  position: relative;
  padding: 24px;
  border-radius: 0 48px 16px 16px;
  background: var(--star-white);
}

.star-team__card .star-bxh__list {
  margin: 0;
  padding: 0;
  border-top: 0;
  max-height: none;
  overflow: visible;
}

.star-team__card .star-bxh__item + .star-bxh__item {
  margin-top: 24px;
}

.star-team__card .star-bxh__row {
  gap: 10px;
}

.star-bxh__rank--1 {
  background: var(--rank-1);
}

.star-bxh__rank--2 {
  background: var(--rank-2);
}

.star-bxh__rank--3 {
  background: var(--rank-3);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1279.98px) {
  .star-bxh {
    padding-top: 48px;
  }

  .star-team {
    padding: 48px 0 64px;
  }

  .star-team__grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .star-bxh__title {
    font-size: 28px;
    line-height: 34px;
  }

  .star-bxh__tabs {
    height: auto;
    gap: 8px;
    padding: 8px;
    border-radius: 32px;
  }

  .star-bxh__tab {
    flex: 1 1 0;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 22px;
  }

  .star-team__title {
    font-size: 24px;
    line-height: 30px;
  }
}

/* --------------------------------------------------------------------------
   Bảng xếp hạng (khối 2) + Podium
   -------------------------------------------------------------------------- */
.star-podium {
  position: relative;
  z-index: 2;
  padding: 107px 0 91px;
  background: var(--star-white);
}

.star-podium__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 460px;
  max-width: 100%;
  margin: 0 auto 44px;
}

.star-podium__title {
  margin: 0;
  width: 100%;
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  color: var(--raw-navy);
  text-align: center;
}

.star-podium__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 70px;
  padding: 12px;
  margin: 0;
  border-radius: 40px;
  background: var(--pr-11);
  list-style: none;
  --star-tab-pill: var(--raw-orange-light);
}

/* --- Thẻ podium ------------------------------------------------------------ */
.star-podium__grid {
  display: flex;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 64px;
}

.star-podium__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 405 / 530;
  border-radius: 24px;
  overflow: hidden;
  background: var(--pr-100);
  color: var(--star-white);
}

.star-podium__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.star-podium__deco {
  position: absolute;
  pointer-events: none;
}

.star-podium__deco--1 {
  top: 19.4%;
  left: 22.2%;
  width: 59%;
}

.star-podium__star {
  position: absolute;
  top: 44.5%;
  left: 48.3%;
  width: 121.6%;
  pointer-events: none;
}

.star-podium__deco--2 {
  top: 20%;
  left: 16.5%;
  width: 67.9%;
}

.star-podium__deco--3 {
  top: 18.3%;
  left: 15.8%;
  width: 71.1%;
}

.star-podium__brand {
  position: absolute;
  top: 29px;
  left: 30px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.star-podium__brand img {
  flex: 0 0 auto;
  max-width: none;
}

.star-podium__logo-shb {
  width: 61px;
  height: 18px;
}

.star-podium__logo-star {
  width: 49px;
  height: 24px;
}

.star-podium__kind {
  position: absolute;
  top: 33px;
  right: 30px;
  z-index: 1;
  margin: 0;
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: var(--body-size);
  line-height: 1;
  text-transform: uppercase;
}

.star-podium__foot {
  position: absolute;
  bottom: 32px;
  left: 30px;
  right: 30px;
  z-index: 1;
}

.star-podium__place {
  margin: 0 0 9px;
  font-family: var(--star-font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  text-transform: uppercase;
}

.star-podium__branch {
  margin: 0;
  font-family: var(--star-font-heading);
  font-weight: var(--font-semibold);
  font-size: 30px;
  line-height: 1.2;
}

@media (max-width: 1279.98px) {
  .star-podium {
    padding: 64px 0;
  }

  .star-podium__grid {
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
  }

  .star-podium__card {
    flex: 0 1 calc(50% - 12px);
  }
}

@media (max-width: 767.98px) {
  .star-podium {
    padding: 40px 0;
  }

  .star-podium__title {
    font-size: 24px;
    line-height: 30px;
  }

  .star-podium__tabs {
    height: auto;
    gap: 8px;
    padding: 8px;
    border-radius: 32px;
  }

  .star-podium__card {
    flex: 0 1 100%;
  }

  .star-podium__branch {
    font-size: 24px;
  }
}
