.page-khuyen-mai {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-dark: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  color: var(--text-main); /* Ensure contrast with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-khuyen-mai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main);
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__card-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--secondary-color);
  color: #111111; /* Dark text for light background */
}

.page-khuyen-mai__center-button {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

/* HERO Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
  padding-bottom: 60px;
  background: var(--background-dark);
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 60px 16px;
}

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-khuyen-mai__hero-title {
  font-size: 3.2em;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
  max-width: 600px;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 600px;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-khuyen-mai__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-khuyen-mai__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Promo Overview Section */
.page-khuyen-mai__promo-overview-section {
  background: var(--background-dark);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

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

.page-khuyen-mai__promo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyen-mai__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0 20px 15px;
}

.page-khuyen-mai__card-text {
  font-size: 1em;
  color: var(--text-main);
  margin: 0 20px 25px;
  flex-grow: 1;
}

.page-khuyen-mai__card-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light gradient */
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  margin: 0 20px;
}

.page-khuyen-mai__card-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* How To Claim Section */
.page-khuyen-mai__how-to-claim-section {
  background: var(--background-dark);
  padding: 80px 0;
}

.page-khuyen-mai__how-to-claim-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-khuyen-mai__how-to-claim-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-khuyen-mai__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.page-khuyen-mai__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-khuyen-mai__step-number {
  background: var(--secondary-color);
  color: #111111; /* Dark text for light background */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-khuyen-mai__step-text h3 {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 5px;
}

.page-khuyen-mai__step-text p {
  color: var(--text-main);
  margin: 0;
}

.page-khuyen-mai__how-to-claim-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-khuyen-mai__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Terms Section */
.page-khuyen-mai__terms-section {
  background: var(--background-dark);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  background: var(--background-dark);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.page-khuyen-mai__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: var(--secondary-color);
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-main);
  line-height: 1.6;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  background: rgba(255, 211, 107, 0.1);
}

/* CTA Section */
.page-khuyen-mai__cta-section {
  background: linear-gradient(90deg, #0A0A0A 0%, rgba(17, 17, 17, 0.8) 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.page-khuyen-mai__cta-container {
  max-width: 900px;
}

.page-khuyen-mai__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__cta-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General image responsiveness */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-title {
    font-size: 2.8em;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1.1em;
  }
  .page-khuyen-mai__section-title {
    font-size: 2em;
  }
  .page-khuyen-mai__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-khuyen-mai__container,
  .page-khuyen-mai__hero-container,
  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__how-to-claim-container,
  .page-khuyen-mai__faq-list,
  .page-khuyen-mai__cta-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* HERO Section Mobile */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }
  .page-khuyen-mai__hero-container {
    flex-direction: column;
    padding: 40px 15px;
    gap: 30px;
  }
  .page-khuyen-mai__hero-content {
    text-align: center;
    flex: 1 1 100%;
  }
  .page-khuyen-mai__hero-title {
    font-size: 2.2em;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1em;
    max-width: 100%;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
  }
  .page-khuyen-mai__hero-image {
    flex: 1 1 100%;
  }

  /* Promo Overview Section Mobile */
  .page-khuyen-mai__promo-overview-section {
    padding: 60px 0;
  }
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai__card-title {
    font-size: 1.3em;
  }
  .page-khuyen-mai__card-text {
    font-size: 0.95em;
  }
  .page-khuyen-mai__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* How To Claim Section Mobile */
  .page-khuyen-mai__how-to-claim-section {
    padding: 60px 0;
  }
  .page-khuyen-mai__how-to-claim-container {
    flex-direction: column-reverse; /* Image above content */
  }
  .page-khuyen-mai__how-to-claim-content {
    flex: 1 1 100%;
  }
  .page-khuyen-mai__how-to-claim-image {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuyen-mai__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .page-khuyen-mai__step-number {
    margin-bottom: 10px;
  }

  /* Terms Section Mobile */
  .page-khuyen-mai__terms-section {
    padding: 60px 0;
  }

  /* FAQ Section Mobile */
  .page-khuyen-mai__faq-section {
    padding: 60px 0;
  }
  .page-khuyen-mai__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
  }

  /* CTA Section Mobile */
  .page-khuyen-mai__cta-section {
    padding: 60px 0;
  }
  .page-khuyen-mai__cta-title {
    font-size: 1.8em;
  }
  .page-khuyen-mai__cta-description {
    font-size: 1em;
  }

  /* Universal Image Mobile */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}