/* style/promotions.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */

.page-promotions {
  background-color: #0A0A0A; /* Màu nền chính */
  color: #FFF6D6; /* Màu chữ chính */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Hình ảnh trên, nội dung dưới */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, không dùng var(--header-offset) */
  background-color: #0A0A0A;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px; /* Khoảng cách giữa hình ảnh và nội dung */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-promotions__hero-content {
  width: 100%;
  max-width: 900px;
  margin-top: 20px; /* Đảm bảo nội dung không đè lên ảnh */
  position: relative; /* Đảm bảo không bị xếp chồng lên ảnh */
  z-index: 1; /* Đảm bảo nội dung không bị ẩn sau ảnh nếu có vấn đề */
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* H1 không dùng font-size cố định quá lớn */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Màu chủ đạo */
  letter-spacing: 1px;
}

.page-promotions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__link-text {
  color: #FFD36B;
  text-decoration: none;
}

.page-promotions__link-text:hover {
  text-decoration: underline;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Màu nút */
  color: #111111; /* Màu chữ nút */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-conditions-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #FFF6D6;
}

.page-promotions__promo-grid {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions__promo-card {
  background-color: #111111; /* Màu nền Card */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #3A2A12; /* Màu viền */
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-image {
  width: 100%;
  height: 250px; /* Kích thước cố định cho hình ảnh thẻ */
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B; /* Màu phụ trợ cho tiêu đề thẻ */
  line-height: 1.3;
}

.page-promotions__card-description {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.3s ease;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.page-promotions__card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-promotions__step-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__step-description {
  font-size: 1em;
  color: #FFF6D6;
}

.page-promotions__cta-button--bottom {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: fit-content;
}

.page-promotions__highlight {
  color: #FFD36B;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-promotions__description {
    font-size: 1em;
  }

  .page-promotions__overview-section,
  .page-promotions__promo-grid,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-conditions-section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.95em;
  }

  .page-promotions__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-promotions__promo-image {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 1.2em;
  }

  .page-promotions__card-description {
    font-size: 0.9em;
  }

  .page-promotions__step-item {
    padding: 25px;
  }

  .page-promotions__step-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-promotions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-button--bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-grid,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-conditions-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__steps-list {
    padding-left: 0;
  }

  .page-promotions__step-item {
    padding: 20px;
  }
}

/* Đảm bảo tất cả hình ảnh đều có kích thước tối thiểu và không có filter */
.page-promotions img {
  min-width: 200px;
  min-height: 200px;
  filter: none !important;
}

/* Đảm bảo các vùng có màu nền và chữ tương phản */
.page-promotions {
  color: #FFF6D6;
  background: #0A0A0A;
}

.page-promotions__card,
.page-promotions__step-item {
  background: #111111;
  color: #FFF6D6;
  border: 1px solid #3A2A12;
}

.page-promotions__cta-button,
.page-promotions__card-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
}