/* style/khuyen-mai.css */

/* General styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set body background to white */
}

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

.page-khuyen-mai__section {
  padding: 60px 0;
}

.page-khuyen-mai__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

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

.page-khuyen-mai__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-khuyen-mai__text-center {
  text-align: center;
}

/* Buttons */
.page-khuyen-mai__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-khuyen-mai__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #1a8cc2; /* Slightly darker blue */
  border-color: #1a8cc2;
}

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #e0f2f7; /* Light blue */
  color: #1a8cc2;
  border-color: #1a8cc2;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Explicitly light background */
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-khuyen-mai__hero-content {
  text-align: center;
}

.page-khuyen-mai__main-title {
  font-size: 48px;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 700;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__description {
  font-size: 20px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

.page-khuyen-mai__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 500px; /* Ensure card has some height */
}

.page-khuyen-mai__promo-figure {
  width: 100%;
  margin-bottom: 20px;
}

.page-khuyen-mai__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-khuyen-mai__promo-caption {
  font-style: italic;
  font-size: 14px;
  color: #666666;
  margin-top: 10px;
}

.page-khuyen-mai__promo-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.page-khuyen-mai__promo-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-khuyen-mai__promo-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-khuyen-mai__promo-list li {
  margin-bottom: 5px;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim {
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF;
}

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

.page-khuyen-mai__step-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__step-icon {
  width: 60px;
  height: 60px;
  background-color: #EA7C07; /* Login color for highlight */
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-khuyen-mai__step-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Terms and Conditions Section */
.page-khuyen-mai__terms-conditions {
  background-color: #f8f8f8; /* Slightly off-white for contrast */
}

.page-khuyen-mai__info-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 25px;
}

.page-khuyen-mai__info-card-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuyen-mai__info-card p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding-bottom: 60px;
}

.page-khuyen-mai__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
}

.page-khuyen-mai__faq-question {
  font-size: 18px;
  color: #26A9E0;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
}

.page-khuyen-mai__faq-answer {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  padding-left: 0;
  margin-bottom: 0;
}

/* Call to Action Section */
.page-khuyen-mai__call-to-action {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: 40px;
  }
  .page-khuyen-mai__section-title {
    font-size: 32px;
  }
  .page-khuyen-mai__description {
    font-size: 18px;
  }
  .page-khuyen-mai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Top section (title + CTA buttons) */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Rely on body padding for header offset */
    padding-bottom: 40px;
  }
  .page-khuyen-mai__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-khuyen-mai__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-khuyen-mai__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__cta-group a { /* Ensure button links also get full width */
      width: 100%;
  }

  /* Single column long text containers */
  .page-khuyen-mai__section {
    padding: 40px 0;
  }
  .page-khuyen-mai__container {
    padding: 0 15px;
  }
  .page-khuyen-mai__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  /* General images and figures */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-khuyen-mai__promo-figure,
  .page-khuyen-mai__hero-image {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__step-card,
  .page-khuyen-mai__info-card,
  .page-khuyen-mai__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__promo-card {
    min-height: auto; /* Allow height to adjust on mobile */
  }

  /* Buttons and button containers (already handled by general .page-khuyen-mai__btn and .page-khuyen-mai__cta-group) */
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-khuyen-mai__cta-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* FAQ sections */
  .page-khuyen-mai__faq-question {
    font-size: 17px;
  }
  .page-khuyen-mai__faq-answer {
    font-size: 15px;
  }

  /* How to Claim section - steps grid */
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-khuyen-mai__step-title {
    font-size: 20px;
  }
  .page-khuyen-mai__step-description {
    font-size: 15px;
  }

  /* Call to Action section */
  .page-khuyen-mai__call-to-action {
    padding: 50px 0;
  }
}