.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #ffffff;
}

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 15px;
  padding-right: 15px;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-khuyen-mai__hero-content {
  width: 100%;
  max-width: 800px;
}

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

.page-khuyen-mai__subtitle {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

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

.page-khuyen-mai__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-khuyen-mai__btn-secondary:hover {
  background: #f0f0f0;
  color: #017439;
}

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

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

.page-khuyen-mai__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.page-khuyen-mai__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-khuyen-mai__section-title--light {
  color: #ffffff;
}

.page-khuyen-mai__text-block {
  font-size: 1.05em;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

.page-khuyen-mai__text-block--light {
  color: #f0f0f0;
}

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

.page-khuyen-mai__promo-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__card-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-khuyen-mai__card-description {
  font-size: 0.95em;
  color: #555555;
}

.page-khuyen-mai__detailed-promotions .page-khuyen-mai__promo-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.page-khuyen-mai__detailed-promotions .page-khuyen-mai__promo-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-khuyen-mai__promo-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-khuyen-mai__promo-content {
  flex: 2;
}

.page-khuyen-mai__promo-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-khuyen-mai__promo-subheading {
  font-size: 1.2em;
  color: #333333;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-khuyen-mai__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #555555;
}

.page-khuyen-mai__list li {
  margin-bottom: 8px;
}

.page-khuyen-mai__how-to-claim .page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-khuyen-mai__step-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.page-khuyen-mai__step-title {
  font-size: 1.2em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-khuyen-mai__step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-khuyen-mai__terms-conditions .page-khuyen-mai__terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-khuyen-mai__term-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-khuyen-mai__term-heading {
  font-size: 1.2em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-khuyen-mai__term-description {
  font-size: 0.95em;
  color: #555555;
}

.page-khuyen-mai__faq-section {
  max-width: 900px;
}

.page-khuyen-mai__faq-list {
  margin-top: 30px;
}

.page-khuyen-mai__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  color: #017439;
  font-weight: 600;
  list-style: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg);
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  margin-top: -1px; /* Overlap border */
}

.page-khuyen-mai__faq-answer p {
  margin-bottom: 0;
}

.page-khuyen-mai__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-khuyen-mai__call-to-action {
  background: #017439;
  color: #ffffff;
  padding: 60px 15px;
  text-align: center;
  border-radius: 8px;
}

.page-khuyen-mai__copyright {
  text-align: center;
  font-size: 0.9em;
  color: #777777;
  padding: 30px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensure all images are responsive */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-khuyen-mai__hero-section {
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 10px;
  }

  .page-khuyen-mai__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    padding-right: 15px;
  }

  .page-khuyen-mai__section {
    margin: 30px auto;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-khuyen-mai__promo-types {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__detailed-promotions .page-khuyen-mai__promo-item,
  .page-khuyen-mai__detailed-promotions .page-khuyen-mai__promo-item:nth-child(even) {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-bottom: 40px;
  }

  .page-khuyen-mai__promo-heading {
    font-size: 1.5em;
  }

  .page-khuyen-mai__promo-subheading {
    font-size: 1.1em;
  }

  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__terms-list {
    grid-template-columns: 1fr;
  }

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

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-khuyen-mai__call-to-action {
    padding: 40px 15px;
  }

  /* Universal image and container responsive styles for content area */
  .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,
  .page-khuyen-mai__promo-item,
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-khuyen-mai__home-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .page-khuyen-mai__home-content table thead, .page-khuyen-mai__home-content table tbody, .page-khuyen-mai__home-content table th, .page-khuyen-mai__home-content table td, .page-khuyen-mai__home-content table tr {
    display: block;
  }
  .page-khuyen-mai__home-content table td {
    white-space: normal;
    word-break: break-word;
  }
}