/* Base Styles for Khuyến Mãi Page */
.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
  padding-bottom: 50px;
}

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

.page-khuyen-mai__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-khuyen-mai__section-subtitle {
  font-size: 18px;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 40px;
}

.page-khuyen-mai__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-khuyen-mai__text-link {
  color: #FFA53A;
  text-decoration: underline;
}

.page-khuyen-mai__text-link:hover {
  color: #FFB04D;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 50px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop default */
  filter: brightness(0.5);
}

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-khuyen-mai__main-title {
  font-size: 52px;
  font-weight: 900;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-khuyen-mai__description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #FFF3E6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary Color */
  border: 2px solid #FFA53A;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.page-khuyen-mai__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-khuyen-mai__introduction-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
  margin-bottom: 40px;
}

/* Promotions Grid Section */
.page-khuyen-mai__promotions-grid-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.4);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.page-khuyen-mai__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-khuyen-mai__card-text {
  font-size: 15px;
  color: #FFF3E6;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #FFF3E6;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__card-button:hover {
  opacity: 0.9;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

.page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-khuyen-mai__step-item {
  background-color: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255, 140, 26, 0.2);
}

.page-khuyen-mai__step-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-khuyen-mai__step-title {
  font-size: 20px;
  color: #FFB04D;
  margin-bottom: 10px;
}

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

/* Terms & Conditions Section */
.page-khuyen-mai__terms-conditions-section {
  padding: 60px 0;
}

.page-khuyen-mai__list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-khuyen-mai__list-item {
  margin-bottom: 10px;
  font-size: 16px;
  color: #FFF3E6;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section {
  padding: 60px 0;
  background-color: #17191F;
}

.page-khuyen-mai__list--styled {
  list-style: none;
  padding-left: 0;
}

.page-khuyen-mai__list--styled .page-khuyen-mai__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.page-khuyen-mai__list--styled .page-khuyen-mai__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFA53A;
  font-weight: bold;
}

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

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

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}

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: #252831;
}

.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  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: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #17191F; /* Card BG */
  margin-top: 40px;
}

.page-khuyen-mai__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
  margin-top: 30px;
}

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

/* Media Queries */
/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: 44px;
  }

  .page-khuyen-mai__description {
    font-size: 18px;
  }

  .page-khuyen-mai__section-title {
    font-size: 30px;
  }

  .page-khuyen-mai__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

  .page-khuyen-mai__faq-qtext {
    font-size: 16px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-khuyen-mai__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    height: auto !important;
    aspect-ratio: unset !important;
    filter: brightness(0.6);
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(28px, 8vw, 40px) !important; /* Clamp for responsive H1 */
    margin-bottom: 15px;
  }

  .page-khuyen-mai__description {
    font-size: 16px !important;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-khuyen-mai__container,
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }
  
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__card-button,
  .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: 12px 15px !important;
    font-size: 16px !important;
  }

  .page-khuyen-mai__section-title {
    font-size: 26px !important;
    padding-top: 30px !important;
  }

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

  /* 产品展示图区域 (Promotions Grid) */
  .page-khuyen-mai__promotions-grid-section {
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-khuyen-mai__grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 20px;
  }

  .page-khuyen-mai__card {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  /* How to Claim Steps */
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

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

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

  /* Terms & Why Choose lists */
  .page-khuyen-mai__list,
  .page-khuyen-mai__list--styled {
    padding-left: 10px;
  }
  .page-khuyen-mai__list-item {
    font-size: 14px;
  }
  .page-khuyen-mai__list--styled .page-khuyen-mai__list-item {
    padding-left: 25px;
  }

  /* FAQ Section */
  details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
    padding: 15px !important;
  }
  .page-khuyen-mai__faq-qtext {
    font-size: 15px !important;
  }
  .page-khuyen-mai__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
    padding: 0 15px 15px !important;
  }

  .page-khuyen-mai__cta-bottom-section {
    padding: 50px 0 !important;
  }

  .page-khuyen-mai__btn-primary--large {
    font-size: 18px !important;
    padding: 15px 25px !important;
  }
}