:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --bg-color-card: #11271B;
  --bg-color-main: #08160F;
  --text-color-main: #F2FFF6;
  --text-color-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-promotions {
  color: var(--text-color-main);
  background-color: var(--bg-color-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-promotions__dark-bg {
  background-color: var(--bg-color-main);
  color: var(--text-color-main);
}

.page-promotions__light-bg {
  background-color: #f8f9fa; /* Sử dụng màu sáng để đảm bảo độ tương phản */
  color: #333333; /* Chữ màu tối trên nền sáng */
}

.page-promotions__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-color-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__light-bg .page-promotions__section-title {
  color: #000000;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--text-color-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions__light-bg .page-promotions__section-description {
  color: #555555;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* body đã có padding-top, chỉ cần 10px cho hero */
  min-height: 500px;
  overflow: hidden;
  text-align: center;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Giảm độ sáng để chữ dễ đọc */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-color-main);
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Sử dụng clamp để điều chỉnh kích thước */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-main);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-color-secondary);
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Ngắt từ khi quá dài */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: 2px solid var(--color-primary);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-glow), 0.4);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--text-color-main);
  border: 2px solid var(--color-border);
}

.page-promotions__btn-secondary:hover {
  background: var(--color-border);
  color: #ffffff;
  transform: translateY(-3px);
}

.page-promotions__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body đã có padding-top, chỉ cần 10px cho video section */
  background-color: var(--bg-color-main);
  color: var(--text-color-main);
}

.page-promotions__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.page-promotions__categories-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-promotions__card {
  background-color: var(--bg-color-card);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-main);
}

.page-promotions__light-bg .page-promotions__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__category-image,
.page-promotions__promotion-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color-main);
}

.page-promotions__light-bg .page-promotions__card-title {
  color: #000000;
}

.page-promotions__card-description {
  font-size: 1em;
  color: var(--text-color-secondary);
  margin-bottom: 20px;
}

.page-promotions__light-bg .page-promotions__card-description {
  color: #555555;
}

.page-promotions__how-to-claim-section {
  padding: 80px 20px;
  background-color: var(--color-deep-green);
  color: var(--text-color-main);
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__step-item {
  background-color: var(--bg-color-card);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-icon {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-promotions__step-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color-main);
}

.page-promotions__step-description {
  font-size: 0.95em;
  color: var(--text-color-secondary);
}

.page-promotions__featured-promotions {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promotion-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-promotions__promotion-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color-card);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-promotions__light-bg .page-promotions__promotion-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.page-promotions__promotion-image {
  width: 100%;
  height: 300px; /* Kích thước lớn hơn cho ảnh nổi bật */
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.page-promotions__promotion-content {
  padding: 25px;
  color: var(--text-color-main);
}

.page-promotions__light-bg .page-promotions__promotion-content {
  color: #333333;
}

.page-promotions__promotion-meta {
  font-size: 0.9em;
  color: var(--text-color-secondary);
  margin-bottom: 15px;
}

.page-promotions__faq-section {
  padding: 80px 20px;
  background-color: var(--bg-color-main);
  color: var(--text-color-main);
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__faq-item {
  background-color: var(--bg-color-card);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-color-main);
  background-color: var(--color-deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* remove default marker for details summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question:hover {
  background-color: var(--color-primary);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--text-color-main);
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-color-secondary);
  background-color: var(--bg-color-card);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--color-primary);
}

.page-promotions__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--color-deep-green);
  color: var(--text-color-main);
}

.page-promotions__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

/* --- Responsive Design --- */

/* Desktop/Tablet */
@media (min-width: 769px) {
  .page-promotions__promotion-card {
    flex-direction: row;
  }

  .page-promotions__promotion-image {
    width: 40%;
    height: auto;
    min-width: 300px;
  }

  .page-promotions__promotion-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding: 10px 15px 40px;
    min-height: 400px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-promotions__video-section,
  .page-promotions__categories-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__featured-promotions,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
  }

  .page-promotions__category-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__category-image,
  .page-promotions__promotion-image,
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  .page-promotions__promotion-card {
    flex-direction: column;
  }

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

  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }
}

/* Ensure no filter on images */
.page-promotions img {
  filter: none; /* Override any potential global filters */
}

/* Text contrast fixes */
.page-promotions p,
.page-promotions li,
.page-promotions__card-description,
.page-promotions__step-description,
.page-promotions__promotion-meta,
.page-promotions__faq-answer {
  color: var(--text-color-secondary);
}

.page-promotions__light-bg p,
.page-promotions__light-bg li,
.page-promotions__light-bg .page-promotions__card-description,
.page-promotions__light-bg .page-promotions__step-description,
.page-promotions__light-bg .page-promotions__promotion-meta,
.page-promotions__light-bg .page-promotions__faq-answer {
  color: #555555;
}