.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background: #F5F7FA;
  line-height: 1.6;
}

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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Adjusted to 10px as per instructions, body handles --header-offset */
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 0 0 15px 15px;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: 500px; /* Fixed height for desktop hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__intro-text {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.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-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__section:last-of-type {
  margin-bottom: 0;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #E53935;
  line-height: 1.3;
}

.page-khuyen-mai__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #555555;
}

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

.page-khuyen-mai__promo-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-khuyen-mai__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
  line-height: 1.3;
}

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

.page-khuyen-mai__card-btn {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 20px;
  background: #E53935;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-khuyen-mai__card-btn:hover {
  background: #FF5A4F;
}

.page-khuyen-mai__promo-categories .page-khuyen-mai__category-block {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-khuyen-mai__promo-categories .page-khuyen-mai__category-block:nth-child(even) {
  flex-direction: row-reverse;
}

.page-khuyen-mai__category-header {
  flex: 1;
  padding: 0 30px;
  text-align: center;
}

.page-khuyen-mai__category-header img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
}

.page-khuyen-mai__category-content {
  flex: 1;
  padding: 0 30px;
}

.page-khuyen-mai__category-content p {
  margin-bottom: 15px;
  color: #444444;
}

.page-khuyen-mai__category-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #444444;
}

.page-khuyen-mai__category-content li {
  margin-bottom: 8px;
}

.page-khuyen-mai__terms-conditions-section,
.page-khuyen-mai__how-to-claim-section {
  background: #ffffff;
  padding: 50px 0;
  margin-bottom: 40px;
}

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

.page-khuyen-mai__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-khuyen-mai__article-body ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #444444;
}

.page-khuyen-mai__article-body p {
  margin-bottom: 15px;
  color: #444444;
}

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

.page-khuyen-mai__step-item {
  text-align: center;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FF5A4F;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(255, 90, 79, 0.3);
}

.page-khuyen-mai__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

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

.page-khuyen-mai__faq-section {
  padding: 50px 0;
  background: #F5F7FA;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #444444;
}

.page-khuyen-mai__final-cta-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.page-khuyen-mai__section-title--light,
.page-khuyen-mai__section-description--light {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__btn-primary--large,
.page-khuyen-mai__btn-secondary--large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

/* All images basic responsive styles */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons basic responsive styles */
.page-khuyen-mai__cta-button,
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai a[class*="button"],
.page-khuyen-mai a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button containers basic responsive styles */
.page-khuyen-mai__cta-buttons,
.page-khuyen-mai__button-group,
.page-khuyen-mai__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-image {
    height: 400px;
  }
  .page-khuyen-mai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyen-mai__promo-categories .page-khuyen-mai__category-block {
    flex-direction: column;
    text-align: center;
  }
  .page-khuyen-mai__promo-categories .page-khuyen-mai__category-block:nth-child(even) {
    flex-direction: column;
  }
  .page-khuyen-mai__category-header,
  .page-khuyen-mai__category-content {
    padding: 0 15px;
  }
  .page-khuyen-mai__category-title {
    margin-top: 20px;
  }
  .page-khuyen-mai__how-to-claim-section .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
    border-radius: 0 0 10px 10px;
  }
  .page-khuyen-mai__hero-image {
    height: 250px;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__hero-image img {
    object-fit: contain !important; /* 禁止裁切两侧 */
    aspect-ratio: unset !important;
  }
  .page-khuyen-mai__hero-content {
    padding: 0 15px 30px;
  }
  .page-khuyen-mai__main-title {
    font-size: 2rem; /* Adjusted for mobile readability */
  }
  .page-khuyen-mai__intro-text {
    font-size: 0.95rem;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* 通用图片与容器 */
  .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__promo-card,
  .page-khuyen-mai__category-block,
  .page-khuyen-mai__article-body,
  .page-khuyen-mai__faq-list,
  .page-khuyen-mai__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-khuyen-mai__section {
    padding: 30px 0;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__section-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__section-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  /* 产品展示图区域 (Promo Grid) */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__promo-card img {
    height: 200px;
  }
  .page-khuyen-mai__card-content {
    padding: 15px;
  }
  .page-khuyen-mai__card-title {
    font-size: 1.2rem;
  }
  .page-khuyen-mai__card-text {
    font-size: 0.85rem;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-khuyen-mai__category-block {
    padding: 20px 15px;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__category-header {
    padding: 0;
  }
  .page-khuyen-mai__category-content {
    padding: 0;
  }
  .page-khuyen-mai__category-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__article-body {
    padding: 0 15px;
  }
  .page-khuyen-mai__subtitle {
    font-size: 1.3rem;
    margin-top: 25px;
  }

  .page-khuyen-mai__how-to-claim-section .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__step-title {
    font-size: 1.1rem;
  }

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

  .page-khuyen-mai__final-cta-section {
    padding: 40px 15px;
    border-radius: 10px;
  }
  .page-khuyen-mai__btn-primary--large,
  .page-khuyen-mai__btn-secondary--large {
    font-size: 1rem;
    padding: 15px 25px;
  }
  .page-khuyen-mai__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
  }
  .page-khuyen-mai__cta-buttons--center .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__cta-buttons--center .page-khuyen-mai__btn-secondary {
    width: 100% !important;
  }
}