/* Base styles for the page-khuyen-mai container */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Ensure main content has proper padding-top if shared.css doesn't set body padding */
/* If shared.css already sets body { padding-top: var(--header-offset); }, then this should be ~10px */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body already has header offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
  color: #ffffff;
  text-align: center;
}

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

.page-khuyen-mai__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.page-khuyen-mai__hero-image-wrapper {
  margin-top: 30px;
}

.page-khuyen-mai__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
  max-width: 800px;
}

.page-khuyen-mai__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  color: #f0f0f0;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

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

.page-khuyen-mai__introduction-section,
.page-khuyen-mai__guide-section,
.page-khuyen-mai__faq-section {
  padding: 60px 0;
  color: #333333;
}

.page-khuyen-mai__introduction-section .page-khuyen-mai__section-title,
.page-khuyen-mai__guide-section .page-khuyen-mai__section-title,
.page-khuyen-mai__faq-section .page-khuyen-mai__section-title {
  color: #26A9E0;
}

.page-khuyen-mai__text-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-khuyen-mai__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-khuyen-mai__text-block strong {
  color: #26A9E0;
}

.page-khuyen-mai__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__promotion-types-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-khuyen-mai__promotion-types-section .page-khuyen-mai__section-title,
.page-khuyen-mai__terms-section .page-khuyen-mai__section-title,
.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__promotion-types-section .page-khuyen-mai__section-description,
.page-khuyen-mai__terms-section p {
  color: #f0f0f0;
}

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

.page-khuyen-mai__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  height: 100%;
}

.page-khuyen-mai__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-khuyen-mai__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__btn-outline {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto;
}

.page-khuyen-mai__btn-outline:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-khuyen-mai__step-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-khuyen-mai__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

.page-khuyen-mai__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 30px;
  margin-top: auto;
}

.page-khuyen-mai__terms-section a {
  color: #ffffff;
  text-decoration: underline;
}

.page-khuyen-mai__terms-section a:hover {
  color: #f0f0f0;
}

.page-khuyen-mai__terms-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #f0f0f0;
  font-size: 1.05em;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
}

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  background-color: #eaf7ff;
  color: #26A9E0;
}

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

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

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

.page-khuyen-mai__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-khuyen-mai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-khuyen-mai__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

.page-khuyen-mai__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
  border-radius: 50px;
}

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

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

  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    padding-bottom: 30px;
  }

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

  .page-khuyen-mai__main-title {
    font-size: 2em; /* Adjusted for mobile */
    max-width: 90%;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1em;
    max-width: 90%;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    padding: 0 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-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-khuyen-mai__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-khuyen-mai__introduction-section,
  .page-khuyen-mai__guide-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__promotion-types-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__cta-bottom-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__text-block {
    padding: 0 15px;
  }

  .page-khuyen-mai__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-khuyen-mai__promotion-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
    margin-top: 30px;
  }

  .page-khuyen-mai__card-image {
    height: 180px; /* Slightly smaller fixed height for mobile */
  }

  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr; /* Single column for steps */
    gap: 20px;
    margin-top: 30px;
  }

  .page-khuyen-mai__step-card {
    padding: 20px;
  }

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

  .page-khuyen-mai__faq-answer {
    padding: 0 15px 12px;
    font-size: 0.95em;
  }

  .page-khuyen-mai__cta-bottom-section {
    padding: 60px 0;
  }

  .page-khuyen-mai__btn-large {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  /* Generic image and container styles for mobile */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__container,
  .page-khuyen-mai__promotion-card,
  .page-khuyen-mai__step-card,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure flex containers wrap */
  .page-khuyen-mai__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .page-khuyen-mai__container {
    padding: 0 25px;
  }

  .page-khuyen-mai__hero-content {
    padding: 30px 0;
  }

  .page-khuyen-mai__main-title {
    font-size: 2.8em;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1.05em;
  }

  .page-khuyen-mai__promotion-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    gap: 25px;
  }

  .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    gap: 25px;
  }

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

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