.page-khuyen-mai {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #f8f8f8;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #555555;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

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

.page-khuyen-mai__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #e01010;
  border-color: #e01010;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-khuyen-mai__section {
  padding: 60px 0;
}

.page-khuyen-mai__section:nth-of-type(even) {
  background-color: #f0f8f0; /* Light green tint */
}

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

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

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

.page-khuyen-mai__promo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px 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(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-khuyen-mai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-khuyen-mai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__promo-title,
.page-khuyen-mai__dark-bg .page-khuyen-mai__promo-text {
  color: #ffffff;
}

.page-khuyen-mai__promo-image-wrapper {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.page-khuyen-mai__promo-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyen-mai__promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439; /* Default for light-bg, overridden for dark-bg */
}

.page-khuyen-mai__promo-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-khuyen-mai__btn-card-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__btn-card-cta {
  background-color: #FFFF00;
  color: #017439;
  border: 2px solid #FFFF00;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__btn-card-cta:hover {
  background-color: #f0f000;
  border-color: #f0f000;
}

.page-khuyen-mai__light-bg .page-khuyen-mai__btn-card-cta {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-khuyen-mai__light-bg .page-khuyen-mai__btn-card-cta:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Game Promo Grid */
.page-khuyen-mai__game-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-khuyen-mai__game-image-wrapper {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3/2;
}

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

.page-khuyen-mai__game-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyen-mai__game-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-khuyen-mai__game-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
}

.page-khuyen-mai__btn-game-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-game-cta:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* How To Claim Section */
.page-khuyen-mai__how-to-claim {
  background-color: #f8f8f8;
}

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

.page-khuyen-mai__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.page-khuyen-mai__step-item::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 40px;
  height: calc(100% - 40px);
  width: 2px;
  background-color: #e0e0e0;
  z-index: 0;
}

.page-khuyen-mai__step-item:last-child::before {
  display: none;
}

.page-khuyen-mai__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.page-khuyen-mai__step-content {
  flex-grow: 1;
}

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

.page-khuyen-mai__step-text {
  font-size: 1rem;
  color: #666666;
}

.page-khuyen-mai__step-text a {
  color: #017439;
  text-decoration: underline;
}

.page-khuyen-mai__step-text a:hover {
  color: #005f2e;
}

.page-khuyen-mai__center-cta {
  text-align: center;
  margin-top: 30px;
}

/* Terms & Conditions Section */
.page-khuyen-mai__terms-conditions {
  background-color: #ffffff;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 25px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-khuyen-mai__terms-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  background-color: #f0f8f0;
}

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

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

details.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-qtext {
  color: #017439;
}

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg);
  color: #017439;
}

details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 1rem;
}

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

/* Responsive Design */
/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-khuyen-mai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .page-khuyen-mai__game-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyen-mai__hero-content {
    padding: 0 20px;
  }
  .page-khuyen-mai__section-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-khuyen-mai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Specific small top padding for mobile */
    padding-bottom: 30px;
  }
  .page-khuyen-mai__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-khuyen-mai__intro-text {
    font-size: 1rem;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* 产品展示图区域 (General Promo Grid) */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    overflow-x: hidden;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__promo-card {
    flex-direction: column;
  }
  .page-khuyen-mai__promo-content {
    padding: 20px;
  }
  .page-khuyen-mai__promo-title {
    font-size: 1.3rem;
  }
  .page-khuyen-mai__promo-text {
    font-size: 0.95rem;
  }
  .page-khuyen-mai__btn-card-cta {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ưu Đãi Đặc Biệt Dành Cho Các Trò Chơi Khác (Game Promo Grid) */
  .page-khuyen-mai__game-promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__game-content {
    padding: 20px;
  }
  .page-khuyen-mai__game-title {
    font-size: 1.2rem;
  }
  .page-khuyen-mai__game-text {
    font-size: 0.9rem;
  }
  .page-khuyen-mai__btn-game-cta {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-khuyen-mai__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    padding: 0 10px;
    word-wrap: break-word;
  }
  .page-khuyen-mai__section-description {
    font-size: 0.95rem;
    padding: 0 15px;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* How To Claim Section */
  .page-khuyen-mai__step-item {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    text-align: center;
    margin-bottom: 25px;
  }
  .page-khuyen-mai__step-item::before {
    left: 50%;
    transform: translateX(-50%);
    height: calc(100% - 50px);
    top: 50px;
  }
  .page-khuyen-mai__step-number {
    position: static;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__step-title {
    font-size: 1.2rem;
  }
  .page-khuyen-mai__step-text {
    font-size: 0.95rem;
  }

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