/* style/khuyen-mai.css */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
}

.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;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__text-block {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__intro-text {
  font-size: 1.15em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #555555;
}

.page-khuyen-mai__cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

.page-khuyen-mai__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

.page-khuyen-mai__btn-large {
    padding: 16px 35px;
    font-size: 1.2em;
}

.page-khuyen-mai__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

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

.page-khuyen-mai__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Promo Grid Section */
.page-khuyen-mai__promo-grid-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background for this section */
  color: #ffffff; /* Light text for dark background */
}

.page-khuyen-mai__promo-grid-section .page-khuyen-mai__section-title,
.page-khuyen-mai__promo-grid-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

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

.page-khuyen-mai__promo-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyen-mai__promo-card-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-khuyen-mai__promo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-khuyen-mai__promo-card-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #555555;
}

.page-khuyen-mai__terms-list li strong {
    color: #017439;
}

/* How To Claim Section */
.page-khuyen-mai__how-to-claim-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-khuyen-mai__how-to-claim-section .page-khuyen-mai__section-title,
.page-khuyen-mai__how-to-claim-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

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

.page-khuyen-mai__step-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-khuyen-mai__step-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-khuyen-mai__reasons-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__reasons-list li {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #555555;
  position: relative;
  padding-left: 30px;
}

.page-khuyen-mai__reasons-list li::before {
  content: '✓';
  color: #017439;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-khuyen-mai__reasons-list li strong {
    color: #017439;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-khuyen-mai__faq-section .page-khuyen-mai__section-title,
.page-khuyen-mai__faq-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

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

.page-khuyen-mai__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: #017439;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  content: '−';
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Final CTA Section */
.page-khuyen-mai__cta-final-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-khuyen-mai__cta-final-section .page-khuyen-mai__cta-group {
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-khuyen-mai__hero-container {
    gap: 30px;
    padding-top: 40px;
  }

  .page-khuyen-mai__hero-content,
  .page-khuyen-mai__hero-image {
    flex: 1 1 100%;
  }

  .page-khuyen-mai__hero-image {
    order: -1; /* Image above text on smaller screens */
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

  .page-khuyen-mai__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* HERO Section - 768px必写清单 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-khuyen-mai__hero-container {
    flex-direction: column; /* Stack content vertically */
    padding-top: 30px;
    gap: 20px;
  }
  .page-khuyen-mai__hero-content {
    text-align: center;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-khuyen-mai__intro-text {
    font-size: 1em;
  }
  .page-khuyen-mai__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai 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-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-khuyen-mai__hero-image {
    order: -1; /* Image still above text */
  }
  .page-khuyen-mai__hero-main-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Promo Grid Section - 768px必写清单 */
  .page-khuyen-mai__promo-grid-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-khuyen-mai__promo-card-media img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Terms Section - 768px必写清单 */
  .page-khuyen-mai__terms-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__terms-list {
    padding-left: 20px;
  }
  .page-khuyen-mai__terms-list li {
    font-size: 0.95em;
  }

  /* How To Claim Section - 768px必写清单 */
  .page-khuyen-mai__how-to-claim-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  /* Why Choose Section - 768px必写清单 */
  .page-khuyen-mai__why-choose-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__reasons-list li {
    font-size: 0.95em;
  }

  /* FAQ Section - 768px必写清单 */
  .page-khuyen-mai__faq-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }

  /* Final CTA Section - 768px必写清单 */
  .page-khuyen-mai__cta-final-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__cta-final-section .page-khuyen-mai__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  /* General image and container rules for 768px必写清单 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__section-title {
    font-size: 1.8em;
  }
  .page-khuyen-mai__section-description {
    font-size: 0.95em;
  }
}

/* Color Contrast Fixes (if needed, based on body background and element background) */
.page-khuyen-mai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}
.page-khuyen-mai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Specific button colors for registration/login if custom colors are used */
.page-khuyen-mai__btn-primary {
  background-color: #C30808; /* Registered color */
  border-color: #C30808;
  color: #FFFF00; /* Registered font color */
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #a30606; /* Slightly darker red on hover */
  border-color: #a30606;
}

.page-khuyen-mai__btn-secondary {
    background-color: #017439; /* Changed to primary brand color for better visibility */
    color: #FFFFFF; /* White text for contrast */
    border-color: #017439;
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #005a2b;
    border-color: #005a2b;
    color: #FFFFFF;
}

.page-khuyen-mai__step-number {
    background-color: #C30808;
}