/* Base styles for the page-khuyen-mai */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F3F8FF); /* Default text color for dark body background */
  background-color: var(--deep-navy-color, #08162B); /* Body background from shared */
}

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

.page-khuyen-mai__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color, #F3F8FF);
  line-height: 1.2;
}

.page-khuyen-mai__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary-color, #AFC4E8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding for internal page, relying on body padding for header offset */
  margin-bottom: 60px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 35%; /* Aspect ratio 1920x675 (approx 35%) or 1920x600 (approx 31.25%) */
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__hero-content-wrapper {
  position: relative;
  text-align: center;
  padding: 40px 0;
  background: var(--card-bg-color, #10233F);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-top: -10px; /* Overlap slightly with image */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__main-title {
  font-weight: 700;
  color: var(--text-main-color, #F3F8FF);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-khuyen-mai__intro-text {
  font-size: 18px;
  color: var(--text-secondary-color, #AFC4E8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(43, 115, 246, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 15px rgba(43, 115, 246, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F3F8FF);
  border: 2px solid var(--border-color, #244D84);
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--border-color, #244D84);
  color: #ffffff;
}

/* Promotion Types Section */
.page-khuyen-mai__promotion-types-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-khuyen-mai__dark-section {
  background: var(--card-bg-color, #10233F);
  border-radius: 10px;
  padding: 60px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-khuyen-mai__promo-card {
  background: var(--deep-navy-color, #08162B);
  border: 1px solid var(--border-color, #244D84);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-khuyen-mai__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-main-color, #F3F8FF);
  margin: 20px 15px 10px;
}

.page-khuyen-mai__promo-card-text {
  font-size: 16px;
  color: var(--text-secondary-color, #AFC4E8);
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-khuyen-mai__btn-text {
  display: inline-block;
  color: var(--glow-color, #4FA8FF);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  padding-bottom: 20px;
  transition: color 0.3s ease;
}

.page-khuyen-mai__btn-text:hover {
  color: #ffffff;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background: var(--deep-navy-color, #08162B);
}

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

.page-khuyen-mai__step-card {
  background: var(--card-bg-color, #10233F);
  border: 1px solid var(--border-color, #244D84);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__step-icon {
  font-size: 48px;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
}

.page-khuyen-mai__step-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main-color, #F3F8FF);
  margin-bottom: 15px;
}

.page-khuyen-mai__step-text {
  font-size: 16px;
  color: var(--text-secondary-color, #AFC4E8);
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-khuyen-mai__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: auto;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-khuyen-mai__feature-card {
  background: var(--deep-navy-color, #08162B);
  border: 1px solid var(--border-color, #244D84);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__feature-card-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-khuyen-mai__feature-card-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main-color, #F3F8FF);
  margin-bottom: 10px;
}

.page-khuyen-mai__feature-card-text {
  font-size: 15px;
  color: var(--text-secondary-color, #AFC4E8);
  flex-grow: 1;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background: var(--deep-navy-color, #08162B);
}

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #244D84);
  overflow: hidden;
  background: var(--card-bg-color, #10233F);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: rgba(var(--border-color-rgb, 36, 77, 132), 0.5); /* Slightly lighter hover */
}
.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #F3F8FF);
}
.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow-color, #4FA8FF);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-navy-color, #08162B);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary-color, #AFC4E8);
  font-size: 16px;
}

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-image-wrapper {
    padding-bottom: 45%;
  }
  .page-khuyen-mai__main-title {
    font-size: 32px;
  }
  .page-khuyen-mai__section-title {
    font-size: 32px;
  }
}

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

  /* Top section padding */
  .page-khuyen-mai__hero-section {
    padding-top: 10px;
    margin-bottom: 40px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    padding-bottom: 55%; /* More height for mobile hero */
  }

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

  .page-khuyen-mai__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-khuyen-mai__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  /* Content sections & cards */
  .page-khuyen-mai__promotion-types-section,
  .page-khuyen-mai__how-to-claim-section,
  .page-khuyen-mai__why-choose-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-bottom-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__promotion-grid,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__feature-grid {
    grid-template-columns: 1fr; /* Single column layout for grids */
    gap: 20px;
  }

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

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

  .page-khuyen-mai__promo-card-title {
    font-size: 20px;
  }

  .page-khuyen-mai__promo-card-text {
    font-size: 15px;
  }

  .page-khuyen-mai__step-icon {
    font-size: 40px;
  }

  .page-khuyen-mai__step-title {
    font-size: 20px;
  }

  .page-khuyen-mai__step-text {
    font-size: 15px;
  }

  .page-khuyen-mai__feature-card-title {
    font-size: 18px;
  }

  .page-khuyen-mai__feature-card-text {
    font-size: 14px;
  }

  /* FAQ specific mobile styles */
  details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
    padding: 15px;
  }
  .page-khuyen-mai__faq-qtext {
    font-size: 16px;
  }
  .page-khuyen-mai__faq-toggle {
    font-size: 20px;
  }
  details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
}