/**
 * SHB iThanks - Body Trang chủ (Figma node 330-2405)
 * Hero, Tin tức nổi bật, 2 CTA, Lời cảm ơn, Bảng xếp hạng, Banner 6T, Thông tin phụ
 */

/* Trang chủ: header không nền, đè lên top banner */
.ithanks-page-home .ithanks-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 100;
}

.ithanks-page-home .ithanks-hero {
  padding-top: 7.5rem;
}

/* ===== Trang chủ – Hero Banner ===== */
.ithanks-hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.ithanks-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/bg-banner.png") center bottom / cover no-repeat;
  z-index: 0;
}

/* Arrow chỉ vào wheel – từ trái dưới, mũi tên hướng vào wheel (góc dưới giữa wheel) */
.ithanks-hero__arrow {
  position: absolute;
  bottom: 0.625rem;
  left: 31.125rem;
  max-width: 43%;
  width: 14.375rem;
  height: auto;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  object-position: left bottom;
}

.ithanks-hero .container {
  z-index: 1;
}

/* Slogan bên trái */
.ithanks-hero__slogan {
  display: flex;
  align-items: center;
}

.ithanks-hero__slogan-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Wheel bên phải */
.ithanks-hero__wheel-wrap {
  display: inline-block;
  text-align: center;
}

.ithanks-hero__wheel-img {
  max-width: 100%;
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Xóa nền đen khi hiển thị video .webm */
video.ithanks-hero__wheel-img {
  border-radius: 50%;
}

/* Logo SHB iLove – thẳng hàng với wheel, dưới wheel cùng cột */
.ithanks-hero__logo-ilove {
  display: block;
  height: 2rem;
  width: auto;
  margin: 1rem auto 0;
  z-index: 1;
}

/* ===== Section chung - đã chuyển vào ithanks-common.css ===== */

.ithanks-news .ithanks-card {
  height: 100%;
}

/* Ảnh bo 4 góc */
.ithanks-news .ithanks-card__img {
  width: 100%;
  height: 17.125rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.625rem;
  display: block;
}

.ithanks-news .ithanks-card__img--yellow {
  background: linear-gradient(
    135deg,
    var(--ithanks-pr-70) 0%,
    var(--ithanks-pr-100) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 200px;
}

.ithanks-news .ithanks-card__badge {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ithanks-se-100);
  text-align: center;
  line-height: 1.35;
}

/* Mép trái text thẳng hàng với mép trái ảnh – cùng canh trái */
.ithanks-news .ithanks-card__body {
  padding: 1rem 1.25rem 0 1.25rem;
  padding-left: 0;
  border-radius: 0;
}

.ithanks-news .ithanks-card__text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ithanks-text-figma);
  line-height: 1.5;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Hai block CTA – Figma 330-2449 ===== */
.ithanks-cta-blocks {
  padding: 0;
}

.ithanks-cta-blocks__row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  display: flex;
  flex-wrap: wrap;
}

.ithanks-cta-blocks__col {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.ithanks-cta-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ithanks-cta-link:hover,
.ithanks-cta-link:focus {
  text-decoration: none;
  color: inherit;
}

.ithanks-cta {
  min-height: 30rem;
  padding: 2rem 1.75rem;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* Block cam – banner (Figma 330-2449); màu dự phòng nếu ảnh lỗi */
.ithanks-cta--orange {
  background-color: var(--ithanks-pr-100);
  background-image: url("../images/home/cta-banner-new.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 20px rgba(244, 121, 32, 0.25);
}

.ithanks-cta--orange::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: repeating-linear-gradient(
    -30deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.06) 40px,
    rgba(255, 255, 255, 0.06) 80px
  ); */
  pointer-events: none;
}

/* Block xanh – banner (Figma 330-2449); màu dự phòng nếu ảnh lỗi */
.ithanks-cta--blue {
  background-color: var(--ithanks-se-100);
  background-image: url("../images/home/cta-banner-2.png");
  /* background-size: cover; */
  /* background-position: center; */
  background-repeat: no-repeat;
  box-shadow: 0 4px 20px rgba(22, 43, 117, 0.3);
}

.ithanks-cta--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: repeating-linear-gradient(
    -25deg,
    transparent,
    transparent 50px,
    rgba(255, 255, 255, 0.03) 50px,
    rgba(255, 255, 255, 0.03) 100px
  ); */
  pointer-events: none;
}

.ithanks-cta__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

/* Hierarchy text theo Figma 330-2449: label nhỏ + dòng chính */
.ithanks-cta__title {
  margin: 0 0 1rem 0;
  max-width: 75%;
  line-height: 1.4;
}

.ithanks-cta__title-small {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ithanks-link-inverse-hover);
  margin-bottom: 0.375rem;
}

.ithanks-cta__title-main {
  display: block;
  font-size: 2.5rem;
  line-height: 2.75rem;
  font-weight: 700;
  color: var(--ithanks-white);
  letter-spacing: -0.01em;
}

.ithanks-cta__title-shb {
  color: var(--ithanks-pr-100);
  font-weight: 700;
  margin-right: 0.35em;
}

/* Graphic – góc phải, căn giữa theo Figma 330-2449 */
.ithanks-cta__visual {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
}

.ithanks-cta__visual--ithanks {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.ithanks-cta__visual--gift {
  width: 90px;
  height: 90px;
  right: 1.5rem;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* Nút CTA – outline trắng (Figma 330-2449) */
.ithanks-cta .ithanks-btn--outline-light {
  background: transparent;
  color: var(--ithanks-white);
  border: 2px solid var(--ithanks-white);
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
}

.ithanks-cta .ithanks-btn--outline-light:hover {
  color: var(--ithanks-white);
  border-color: var(--ithanks-white);
  text-decoration: none;
}

/* Section Lời cảm ơn mới nhất – background gradient */
.ithanks-section.ithanks-thanks {
  background: linear-gradient(180deg, rgba(254, 240, 230, 0) 0%, #fef0e6 100%);
}

/* Card cảm ơn – Figma 497-5909: height 526px, giàn đều nội dung */
.ithanks-card--thanks {
  background: url("../images/bg-thank-item.png") right top / cover no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: 526px;
  display: flex;
  flex-direction: column;
}

.ithanks-card--thanks .ithanks-card__header {
  padding: 7.8125rem 1.25rem 2.375rem; /* 7.8125rem = 125px; 2.375rem = 38px if root = 16px */
  flex-shrink: 0;
}

/* Figma 497-5909: tiêu đề thẻ (TÍN, TÂM, TRÍ…) – Danh Da, PR-40, 96px */
.ithanks-card--thanks .ithanks-card__title {
  font-family: var(--ithanks-font-danhda);
  font-size: 6rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5rem;
  color: var(--ithanks-pr-40);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ithanks-card--thanks .ithanks-card__body {
  flex: 1;
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ithanks-card--thanks .ithanks-card__desc {
  font-size: 1rem;
  color: var(--ithanks-white);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ithanks-card--thanks .ithanks-card__meta {
  font-size: 0.8125rem;
  color: var(--ithanks-white);
  margin: 0;
  margin-top: auto;
  line-height: 1.45;
}

.ithanks-card--thanks .ithanks-card__meta-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ithanks-white);
}

.ithanks-card--thanks .ithanks-card__meta-dept {
  font-weight: 400;
  color: var(--ithanks-pr-40);
}

.ithanks-card--thanks .ithanks-card__recipient {
  font-size: 0.875rem;
  color: var(--ithanks-link-inverse-hover);
  margin: 0;
  line-height: 1.45;
}

.ithanks-card--thanks .ithanks-card__recipient .ithanks-card__meta-name {
  font-weight: 700;
  color: var(--ithanks-white);
}

.ithanks-card--thanks .ithanks-card__recipient .ithanks-card__meta-dept {
  font-weight: 400;
  color: var(--ithanks-pr-40);
}

/* ===== Bảng xếp hạng – 3 cards/slide (Figma 330-2525) ===== */
.ithanks-leaderboard .ithanks-section__title {
  margin-bottom: 2rem;
}

.ithanks-leaderboard__carousel {
  margin-top: 1.5rem;
}

/* Mỗi slide (box) có min-width tương đương chứa 6 dòng tên */
.ithanks-leaderboard__carousel .splide__slide {
  min-width: 320px;
}

.ithanks-leaderboard__carousel .ithanks-leaderboard__card {
  min-height: 100%;
}

/* Card – Figma: nền peach (pr-5), bo góc 12px, shadow */
.ithanks-leaderboard__card {
  background: var(--ithanks-pr-5);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.5rem;
}

.ithanks-leaderboard__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ithanks-se-100);
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ithanks-border);
}

/* List item – rank badge, name, dept, score */
.ithanks-leaderboard__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ithanks-leaderboard__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.06); */
}

.ithanks-leaderboard__item:last-child {
  border-bottom: none;
}

.ithanks-leaderboard__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ithanks-pr-17);
  border: 2px solid var(--ithanks-pr-17);
  color: var(--ithanks-pr-100);
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Top 3: solid orange badge, white number */
.ithanks-leaderboard__item:nth-child(1) .ithanks-leaderboard__rank,
.ithanks-leaderboard__item:nth-child(2) .ithanks-leaderboard__rank,
.ithanks-leaderboard__item:nth-child(3) .ithanks-leaderboard__rank {
  background: var(--ithanks-pr-100);
  border: none;
  color: var(--ithanks-white);
}

/* Ranks 4+: điểm số không bold */
.ithanks-leaderboard__item:nth-child(n + 4) .ithanks-leaderboard__score {
  font-weight: 400;
}

.ithanks-leaderboard__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ithanks-leaderboard__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ithanks-se-100);
  padding-left: 0.25rem;
}

.ithanks-leaderboard__dept {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ithanks-se-70);
  padding-left: 0.25rem;
}

.ithanks-leaderboard__score {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ithanks-se-100);
  flex-shrink: 0;
}

/* ===== Banner 6T ===== */
.ithanks-banner-6t__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ===== Thông tin phụ – Figma 330-2558 ===== */
h3.ithanks-info__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ithanks-se-100);
  margin: 1.5rem 0 0.5rem 0;
}

.ithanks-info__heading:first-child {
  margin-top: 0;
}

.ithanks-info__subheading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ithanks-text-figma) !important;
  margin: 1rem 0 0.5rem 0;
}

.ithanks-info__subheading:first-of-type {
  margin-top: 0.5rem;
}

.ithanks-info__text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ithanks-text-figma);
  margin: 0 0 0;
  line-height: 1.5;
}

.ithanks-info__list {
  padding-left: 1.25rem;
  margin: 0 0 0;
  margin-bottom: 0.75em;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ithanks-text-figma);
}

.ithanks-info__list li {
  margin-bottom: 0.5rem;
}

.ithanks-info__list li:last-child {
  margin-bottom: 0;
}

/* ===== Responsive: tablet & mobile ===== */
@media (max-width: 991.98px) {
  .ithanks-page-home .ithanks-hero {
    padding-top: 5rem;
  }
  .ithanks-hero {
    padding: 2rem 0 3rem;
  }
  .ithanks-hero .row {
    gap: 3rem;
  }

  .ithanks-hero__slogan {
    justify-content: center;
  }

  .ithanks-news .ithanks-card__text {
    font-size: 1.1875rem;
  }
  .ithanks-cta {
    min-height: 22rem;
    padding: 1.5rem 1.25rem;
  }
  .ithanks-cta__title-main {
    font-size: 1.75rem;
    line-height: 2rem;
  }
  .ithanks-card--thanks {
    height: auto;
    min-height: 420px;
  }
  .ithanks-card--thanks .ithanks-card__title {
    font-size: 4rem;
  }
  /* Banner 6T responsive */
  .ithanks-banner-6t {
    padding: 0 0.75rem;
  }
  .ithanks-banner-6t__img {
    border-radius: 6px;
  }
  /* Info section responsive */
  h3.ithanks-info__heading {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.5rem 0;
  }
  .ithanks-info__subheading {
    font-size: 0.9375rem;
    margin: 0.875rem 0 0.5rem 0;
  }
  .ithanks-info__text {
    font-size: 0.9375rem;
  }
  .ithanks-info__list {
    font-size: 0.9375rem;
  }
  /* Hide splide arrows on tablet */
  .ithanks-splide-carousel .splide__arrows {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .ithanks-hero__arrow {
    display: none;
  }
  .ithanks-hero {
    padding: 1.5rem 0 2.5rem;
  }
  .ithanks-page-home .ithanks-hero {
    padding-top: 6rem;
  }
  .ithanks-hero .row {
    gap: 3rem;
  }
  .ithanks-hero__wheel-img {
    max-width: 280px;
  }
  .ithanks-news .ithanks-card__img {
    height: 15rem;
  }
  .ithanks-news .ithanks-card__text {
    font-size: 1.125rem;
  }
  .ithanks-cta {
    min-height: 20rem;
    padding: 1.25rem 1rem;
  }
  .ithanks-cta__title {
    max-width: 100%;
  }
  .ithanks-cta__title-main {
    font-size: 1.5rem;
    line-height: 1.75rem;
  }
  .ithanks-cta__title-small {
    font-size: 1rem;
  }

  .ithanks-card--thanks .ithanks-card__title {
    font-size: 3rem;
  }
  .ithanks-card--thanks .ithanks-card__header {
    padding: 4rem 1rem 1.5rem;
  }
  .ithanks-leaderboard__carousel .splide__slide {
    min-width: 280px;
  }
  /* Banner 6T responsive */
  .ithanks-banner-6t {
    padding: 0 0.5rem;
  }
  .ithanks-banner-6t__img {
    border-radius: 4px;
  }
  /* Info section responsive */
  h3.ithanks-info__heading {
    font-size: 1.125rem;
    margin: 1rem 0 0.5rem 0;
  }
  .ithanks-info__subheading {
    font-size: 0.875rem;
    margin: 0.75rem 0 0.5rem 0;
  }
  .ithanks-info__text {
    font-size: 0.875rem;
  }
  .ithanks-info__list {
    font-size: 0.875rem;
    padding-left: 1rem;
  }
  .ithanks-info__list li {
    margin-bottom: 0.375rem;
  }
}

@media (max-width: 575.98px) {
  /* Banner 6T responsive */
  .ithanks-banner-6t {
    padding: 0;
  }
  /* Info section responsive */
  h3.ithanks-info__heading {
    font-size: 1rem;
    margin: 0.875rem 0 0.375rem 0;
  }
  .ithanks-info__heading:first-child {
    margin-top: 0;
  }
  .ithanks-info__subheading {
    font-size: 0.8125rem;
    margin: 0.625rem 0 0.375rem 0;
  }
  .ithanks-info__subheading:first-of-type {
    margin-top: 0.375rem;
  }
  .ithanks-info__text {
    font-size: 0.8125rem;
  }
  .ithanks-info__list {
    font-size: 0.8125rem;
    padding-left: 0.875rem;
    margin-bottom: 0.625em;
  }
  .ithanks-info__list li {
    margin-bottom: 0.25rem;
  }
  .ithanks-cta-blocks__row {
    gap: 1.5rem;
  }
}
.ithanks-info ul li {
  color: #2B2B2B
}