/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* From shared.css */
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
}

.page-khuyen-mai__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #AFC4E8; /* Text Secondary */
  text-align: center;
}

.page-khuyen-mai__text-link {
  color: #1D5FD1; /* Auxiliary color for links */
  text-decoration: underline;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding for fixed header */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #F3F8FF;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #AFC4E8;
}

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

.page-khuyen-mai__cta-buttons--center {
  margin-top: 30px;
}

.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: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #F3F8FF; /* Text Main */
  border: none;
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-secondary {
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  border: 2px solid #244D84; /* Border color */
}

.page-khuyen-mai__btn-secondary:hover {
  transform: translateY(-3px);
  background: #1B3357; /* Divider */
}

/* Overview Section */
.page-khuyen-mai__overview-section {
  padding: 60px 20px;
  background-color: #08162B; /* Deep Navy */
  color: #AFC4E8;
}

/* Promotion Types Section */
.page-khuyen-mai__promotion-types {
  padding: 60px 20px;
  background-color: #10233F; /* Card BG */
}

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

.page-khuyen-mai__card {
  background: #08162B; /* Deep Navy */
  color: #F3F8FF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__promotion-card.page-khuyen-mai__light-bg {
  background: #08162B; /* Deep Navy */
  color: #F3F8FF;
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-khuyen-mai__card-description {
  font-size: 1em;
  color: #AFC4E8;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim {
  padding: 60px 20px;
  background-color: #08162B; /* Deep Navy */
  color: #AFC4E8;
}

.page-khuyen-mai__step-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-khuyen-mai__list-item {
  background: #10233F; /* Card BG */
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #F3F8FF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__list-item strong {
  color: #F2C14E; /* Gold */
}

/* Terms Highlight Section */
.page-khuyen-mai__terms-highlight {
  padding: 60px 20px;
  background-color: #10233F; /* Card BG */
  color: #AFC4E8;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  margin: 0 auto 30px auto;
  padding-left: 25px;
  max-width: 800px;
  color: #AFC4E8;
}

.page-khuyen-mai__terms-list .page-khuyen-mai__list-item {
  background: none;
  padding: 5px 0;
  margin-bottom: 10px;
  box-shadow: none;
  color: #AFC4E8;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 20px;
  background-color: #08162B; /* Deep Navy */
  color: #AFC4E8;
}

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

.page-khuyen-mai__faq-item {
  background: #10233F; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  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: #AFC4E8;
}

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

/* Final CTA Section */
.page-khuyen-mai__final-cta {
  padding: 60px 20px;
  background-color: #10233F; /* Card BG */
  text-align: center;
  color: #AFC4E8;
}

/* General image styling to prevent overflow */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 20px 30px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }

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

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

@media (max-width: 768px) {
  .page-khuyen-mai__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

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

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

  /* 按钮与按钮容器 */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

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

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-khuyen-mai__overview-section,
  .page-khuyen-mai__promotion-types,
  .page-khuyen-mai__how-to-claim,
  .page-khuyen-mai__terms-highlight,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__final-cta {
    padding: 40px 15px;
  }

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

  .page-khuyen-mai__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

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

@media (max-width: 480px) {
  .page-khuyen-mai__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

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

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

  .page-khuyen-mai__card-title {
    font-size: 1.2em;
  }

  .page-khuyen-mai__card-description {
    font-size: 0.9em;
  }

  .page-khuyen-mai__list-item {
    font-size: 0.9em;
  }
}