/* Base styles for the page-khuyen-mai */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-khuyen-mai__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuyen-mai__text-block {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  background-color: #F4F7FB;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

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

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

.page-khuyen-mai__main-title {
  font-size: clamp(32px, 4vw, 56px);
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuyen-mai__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #1F2D3D; /* Text Main */
}

/* Buttons */
.page-khuyen-mai__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* Promotion Cards Grid */
.page-khuyen-mai__promotions-overview {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-khuyen-mai__promotion-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #D6E2FF; /* Border */
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  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: 24px;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-khuyen-mai__card-description {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
}

.page-khuyen-mai__how-to-claim .page-khuyen-mai__section-title,
.page-khuyen-mai__how-to-claim .page-khuyen-mai__text-block {
  color: #ffffff;
}

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

.page-khuyen-mai__step-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  border: 1px solid #D6E2FF; /* Border */
}

.page-khuyen-mai__step-card .page-khuyen-mai__card-title {
  color: #2F6BFF; /* Main Color */
  font-size: 22px;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-card .page-khuyen-mai__card-description {
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-khuyen-mai__feature-item {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  border: 1px solid #D6E2FF; /* Border */
}

.page-khuyen-mai__feature-item .page-khuyen-mai__card-title {
  color: #2F6BFF; /* Main Color */
  font-size: 22px;
  margin-bottom: 15px;
}

.page-khuyen-mai__feature-item .page-khuyen-mai__card-description {
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #000000; /* Custom Color_1776249996415 */
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2F6BFF; /* Main Color */
}

.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: 16px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.7;
}

/* Call to Action Section */
.page-khuyen-mai__cta-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
  text-align: center;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__section-title,
.page-khuyen-mai__cta-section .page-khuyen-mai__description {
  color: #ffffff;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__btn-primary {
  margin-top: 30px;
}

/* Copyright */
.page-khuyen-mai__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  border-top: 1px solid #D6E2FF; /* Border */
}

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

  .page-khuyen-mai__section-title {
    font-size: clamp(24px, 4vw, 36px);
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(28px, 5vw, 48px);
  }

  .page-khuyen-mai__card-image {
    height: 200px;
  }

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

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Fixed top padding for mobile */
  }
  .page-khuyen-mai__main-title {
    font-size: 28px !important; /* Smaller H1 for mobile */
    padding: 0 15px;
  }
  .page-khuyen-mai__description {
    font-size: 16px;
    padding: 0 15px;
  }
  .page-khuyen-mai__hero-content {
    padding: 20px 15px;
  }

  /* General content padding */
  .page-khuyen-mai__container {
    padding: 0 15px !important;
  }

  /* 所有图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuyen-mai__hero-image-wrapper,
  .page-khuyen-mai__promotions-grid,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__features-grid,
  .page-khuyen-mai__faq-list,
  .page-khuyen-mai__cta-section .page-khuyen-mai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 所有按钮与按钮容器 */
  .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% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  .page-khuyen-mai__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Promotion Cards Grid */
  .page-khuyen-mai__promotions-grid,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promotion-card,
  .page-khuyen-mai__step-card,
  .page-khuyen-mai__feature-item {
    padding: 20px;
  }
  .page-khuyen-mai__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-khuyen-mai__section-title {
    font-size: 24px !important;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__text-block {
    font-size: 16px;
    padding: 0 15px;
  }

  /* FAQ */
  .page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }

  /* No long text gold frame or game/brand carousels on non-homepage */
  /* No specific blog masonry/slider for non-homepage, using general card grid */
}