/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  padding-bottom: 40px;
}

.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding to avoid double header offset */
  margin-bottom: 40px;
  text-align: center;
  color: #FFF1E8;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

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

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

.page-khuyen-mai__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-khuyen-mai__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-khuyen-mai__promotions-section,
.page-khuyen-mai__how-to-register-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__final-cta-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  border-radius: 10px;
}

.page-khuyen-mai__dark-section {
  background-color: #2A1212; /* Card BG */
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-khuyen-mai__section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #FFF1E8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuyen-mai__promo-card {
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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.4rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

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

.page-khuyen-mai__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C61F1F; /* Main Color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95rem;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-khuyen-mai__read-more-btn:hover {
  background-color: #E53030; /* Auxiliary Color */
}

.page-khuyen-mai__button-container {
  text-align: center;
  margin-top: 30px;
}

.page-khuyen-mai__how-to-register-section {
  background-color: #2A1212; /* Card BG */
}

.page-khuyen-mai__step-list {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-khuyen-mai__step-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  padding: 25px;
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-title {
  font-size: 1.5rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
}

.page-khuyen-mai__step-description {
  font-size: 1rem;
  color: #FFF1E8;
}

.page-khuyen-mai__terms-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #FFF1E8;
}

.page-khuyen-mai__terms-content h3 {
  color: #F3C54D;
  margin-top: 20px;
  font-size: 1.3rem;
}

.page-khuyen-mai__terms-content ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  padding: 0;
}

.page-khuyen-mai__terms-content li {
  margin-bottom: 10px;
  color: #FFF1E8;
}

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

.page-khuyen-mai__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.page-khuyen-mai__faq-question .page-khuyen-mai__faq-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #FFF1E8;
  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: 1rem;
  color: #FFF1E8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-khuyen-mai__final-cta-section {
  text-align: center;
}

.page-khuyen-mai__copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #6A1E1E;
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-khuyen-mai__step-list {
    flex-direction: column;
    align-items: center;
  }
  .page-khuyen-mai__step-item {
    max-width: 500px;
    width: 100%;
  }
}

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

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

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

  .page-khuyen-mai__main-title {
    font-size: 2.2rem;
  }

  .page-khuyen-mai__description {
    font-size: 1rem;
  }

  /* 博客卡片区 (Promotions Grid acting as similar content) */
  .page-khuyen-mai__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-khuyen-mai__promo-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__promo-image {
    height: 200px; /* Adjust height for mobile */
  }

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-khuyen-mai__promotions-section,
  .page-khuyen-mai__how-to-register-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-khuyen-mai__cta-button,
  .page-khuyen-mai__read-more-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;
    text-align: center;
  }
  
  .page-khuyen-mai__button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-khuyen-mai__step-list {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .page-khuyen-mai__step-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

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

  .page-khuyen-mai__terms-content {
    font-size: 1rem;
  }
}