.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
}

.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

.page-khuyen-mai__hero-content {
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

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

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

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-khuyen-mai__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

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

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

.page-khuyen-mai__text-link--white {
  color: #FFFF00;
  text-decoration: underline;
}

.page-khuyen-mai__text-link--white:hover {
  color: #FFFFFF;
}

.page-khuyen-mai__overview-section,
.page-khuyen-mai__how-to-claim-section,
.page-khuyen-mai__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__promotions-grid-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__final-cta-section {
  padding: 60px 20px;
  background-color: #017439; /* Brand primary color for dark sections */
  color: #FFFFFF;
  margin-bottom: 40px;
  text-align: center;
}

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #017439;
  font-weight: bold;
  text-align: center;
}

.page-khuyen-mai__section-title--white {
  color: #FFFFFF;
}

.page-khuyen-mai__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-khuyen-mai__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-khuyen-mai__text-block--white a {
  color: #FFFF00;
}

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

.page-khuyen-mai__promotion-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-khuyen-mai__promotion-card:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #017439;
  font-weight: bold;
}

.page-khuyen-mai__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-khuyen-mai__card-title a:hover {
  text-decoration: underline;
}

.page-khuyen-mai__card-description {
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuyen-mai__btn-text {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-khuyen-mai__btn-text:hover {
  text-decoration: underline;
}

.page-khuyen-mai__steps-list {
  list-style: none;
  counter-reset: step-counter;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding: 0;
}

.page-khuyen-mai__step-item {
  counter-increment: step-counter;
  margin-bottom: 25px;
  padding-left: 60px;
  position: relative;
  text-align: left;
}

.page-khuyen-mai__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

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

.page-khuyen-mai__step-item p {
  font-size: 1rem;
  color: #555555;
}

.page-khuyen-mai__step-item a {
  color: #017439;
  text-decoration: underline;
}

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

.page-khuyen-mai__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

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

.page-khuyen-mai__faq-item details > summary {
  list-style: none;
}

.page-khuyen-mai__faq-item details > summary::-webkit-details-marker {
  display: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-khuyen-mai__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

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

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

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

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

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

  .page-khuyen-mai__overview-section,
  .page-khuyen-mai__how-to-claim-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__promotions-grid-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__final-cta-section {
    padding: 40px 15px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding, overridden by important */
    margin-bottom: 30px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    max-height: none;
  }

  .page-khuyen-mai__hero-image {
    object-fit: contain !important; /* Contain for mobile, prevent cropping */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-khuyen-mai__hero-content {
    padding: 20px 15px;
  }

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

  .page-khuyen-mai__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Buttons and Button Containers */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    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: 12px 20px;
  }

  /* General Sections */
  .page-khuyen-mai__overview-section,
  .page-khuyen-mai__how-to-claim-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__promotions-grid-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__final-cta-section {
    padding: 30px 15px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-khuyen-mai__text-block {
    font-size: 0.95rem;
  }

  /* Promotion Grid */
  .page-khuyen-mai__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promotion-card {
    height: auto;
  }

  .page-khuyen-mai__card-image {
    height: 180px;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.3rem;
  }

  /* How To Claim Steps */
  .page-khuyen-mai__step-item {
    padding-left: 50px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.2rem;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-khuyen-mai__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }

  /* All images in content area */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}