:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Deep Red */
  --dark-background: #121212;
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-background: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.15);
}

/* Base styles for the page content, accounting for fixed header */
.page-promotions {
  color: var(--light-text); /* Light text on dark body background */
  background-color: var(--dark-background); /* Ensure consistent background */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  min-height: 100vh;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Sections */
.page-promotions__hero-section,
.page-promotions__overview-section,
.page-promotions__featured-promotions,
.page-promotions__terms-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__why-choose-section,
.page-promotions__final-cta-section {
  padding: 60px 20px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:u888,khuyenmai,banner,background_abstract]') no-repeat center center/cover;
  padding-top: 150px; /* More padding for hero to feel spacious */
  padding-bottom: 80px;
}

.page-promotions__hero-container,
.page-promotions__overview-container,
.page-promotions__featured-container,
.page-promotions__terms-container,
.page-promotions__how-to-claim-container,
.page-promotions__faq-container,
.page-promotions__why-choose-container,
.page-promotions__final-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Titles & Descriptions */
.page-promotions__hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: bold;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--light-text);
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--light-text);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-promotions__cta-button:hover {
  background: #FFC107; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--large {
  padding: 18px 50px;
  font-size: 1.3em;
}

.page-promotions__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--light-text);
  margin-left: 20px;
}

.page-promotions__cta-button--secondary:hover {
  background: #B20C2D; /* Slightly darker deep red */
}

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

/* Overview Grid */
.page-promotions__overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__overview-item {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__overview-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__overview-item-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__overview-item-text {
  color: var(--light-text);
  font-size: 1em;
}

/* Promotion Cards */
.page-promotions__promotion-card {
  display: flex;
  align-items: center;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 40px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  gap: 30px;
}

.page-promotions__promotion-card--reverse {
  flex-direction: row-reverse;
}

.page-promotions__promotion-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__promotion-content {
  flex: 1;
}

.page-promotions__promotion-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__promotion-text {
  font-size: 1.1em;
  color: var(--light-text);
  margin-bottom: 20px;
}

.page-promotions__promotion-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__promotion-list li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--secondary-color);
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 4px;
  color: var(--light-text);
  font-size: 1em;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promotions__card-button:hover {
  background: #B20C2D;
}

/* Terms Section */
.page-promotions__terms-section {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 80px 20px;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background: var(--card-background);
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: var(--light-text);
  font-size: 1.1em;
}

.page-promotions__terms-list li strong {
  color: var(--primary-color);
}

/* How-To-Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 20px;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
}

.page-promotions__steps-list li {
  counter-increment: step-counter;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  padding: 20px 20px 20px 60px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  font-size: 1.1em;
  color: var(--light-text);
}

.page-promotions__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--dark-text);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-promotions__steps-list li strong {
  color: var(--primary-color);
}

.page-promotions__steps-list li a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__steps-list li a:hover {
  color: #FFC107;
}

.page-promotions__cta-bottom {
  margin-top: 40px;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 80px 20px;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: var(--light-text);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: var(--secondary-color);
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 80px 20px;
}

.page-promotions__why-choose-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
}

.page-promotions__why-choose-list li {
  background: var(--card-background);
  border-left: 4px solid var(--secondary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: var(--light-text);
  font-size: 1.1em;
}

.page-promotions__why-choose-list li strong {
  color: var(--primary-color);
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  background-color: var(--secondary-color);
  padding: 80px 20px;
  color: var(--light-text);
}

.page-promotions__final-cta-title {
  font-size: 2.8em;
  color: var(--light-text);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__final-cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 15px;
    line-height: 1.5;
  }

  .page-promotions__hero-section,
  .page-promotions__overview-section,
  .page-promotions__featured-promotions,
  .page-promotions__terms-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__why-choose-section,
  .page-promotions__final-cta-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-container,
  .page-promotions__overview-container,
  .page-promotions__featured-container,
  .page-promotions__terms-container,
  .page-promotions__how-to-claim-container,
  .page-promotions__faq-container,
  .page-promotions__why-choose-container,
  .page-promotions__final-cta-container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Buttons */
  .page-promotions__cta-button,
  .page-promotions__card-button,
  .page-promotions__final-cta-buttons a {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px; /* Add vertical spacing for stacked buttons */
  }
  
  .page-promotions__final-cta-buttons {
    flex-direction: column;
    gap: 0; /* Remove gap if stacking */
  }

  /* Overview Grid */
  .page-promotions__overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__overview-image {
    max-width: 180px;
  }

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

  /* Promotion Cards */
  .page-promotions__promotion-card {
    flex-direction: column !important;
    padding: 20px;
    gap: 20px;
    margin-bottom: 30px;
  }

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

  .page-promotions__promotion-title {
    font-size: 1.5em;
  }

  .page-promotions__promotion-text,
  .page-promotions__promotion-list li {
    font-size: 0.95em;
  }

  /* Terms Section */
  .page-promotions__terms-list li {
    padding: 15px;
    font-size: 1em;
  }

  /* How-To-Claim Section */
  .page-promotions__steps-list {
    margin-top: 20px;
  }

  .page-promotions__steps-list li {
    padding: 15px 15px 15px 50px;
    font-size: 1em;
  }

  .page-promotions__steps-list li::before {
    left: 15px;
    width: 25px;
    height: 25px;
    font-size: 1em;
  }

  /* FAQ Section */
  .page-promotions__faq-list {
    margin-top: 20px;
  }

  .page-promotions__faq-question {
    padding: 15px;
  }

  .page-promotions__faq-question h3 {
    font-size: 1em;
  }

  .page-promotions__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Why Choose Section */
  .page-promotions__why-choose-list li {
    padding: 15px;
    font-size: 1em;
  }

  /* Final CTA Section */
  .page-promotions__final-cta-title {
    font-size: 2em;
  }

  .page-promotions__final-cta-description {
    font-size: 1em;
  }

  /* General image and video responsiveness */
  .page-promotions img,
  .page-promotions video {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

/* Tablet (max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-promotions {
    padding-top: 100px; /* Tablet: Adjust for fixed header */
  }

  .page-promotions__hero-title {
    font-size: 3em;
  }

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

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

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

  .page-promotions__promotion-image {
    max-width: 80%;
    margin-bottom: 20px;
  }
}