/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure body background is respected */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #FFFFFF;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly darken image for text contrast */
}

.page-khuyen-mai__hero-content {
  text-align: center;
  padding: 20px 15px;
  max-width: 900px;
  z-index: 1;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for prominence */
}

.page-khuyen-mai__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

.page-khuyen-mai__text-center {
  text-align: center;
}

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand color for titles */
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title {
  color: #FFFFFF;
}

.page-khuyen-mai__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Card Layout for Promotions */
.page-khuyen-mai__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.page-khuyen-mai__card-image {
  width: 100%;
  max-width: 400px;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

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

/* Info Grid (Conditions Section) */
.page-khuyen-mai__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-khuyen-mai__info-card {
  background: #017439; /* Brand color for dark background */
  color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.page-khuyen-mai__info-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for contrast on green */
}

.page-khuyen-mai__info-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* Steps Grid (How to Claim Section) */
.page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__step-card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}

.page-khuyen-mai__step-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-khuyen-mai__step-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__step-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons by default */
  gap: 10px;
  width: 100%;
}

/* Tip List (Optimization Tips Section) */
.page-khuyen-mai__tip-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-khuyen-mai__tip-item {
  background: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-khuyen-mai__tip-item strong {
  color: #017439;
}

.page-khuyen-mai__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-khuyen-mai__faq-item {
  background: #ffffff;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: #f5f5f5;
  font-weight: bold;
  font-size: 1.1rem;
  color: #017439;
  list-style: none; /* Remove default marker */
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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: 15px 25px 20px;
  border-top: 1px solid #eee;
  font-size: 1rem;
  line-height: 1.7;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai a[class*="button"],
.page-khuyen-mai a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-khuyen-mai__btn-primary:hover {
  background: #e00b0b;
  border-color: #e00b0b;
}

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

.page-khuyen-mai__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-khuyen-mai__btn-large {
  padding: 15px 35px;
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-khuyen-mai__section-title {
    font-size: 2rem;
  }
  .page-khuyen-mai__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-khuyen-mai__hero-content {
    padding: 15px 10px;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-khuyen-mai__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* General Section and Container */
  .page-khuyen-mai__section {
    padding: 40px 0;
  }
  .page-khuyen-mai__container {
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  /* Card Layout */
  .page-khuyen-mai__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__card {
    padding: 20px;
  }
  .page-khuyen-mai__card-image {
    height: 180px; /* Adjust height for smaller screens */
  }
  .page-khuyen-mai__card-title {
    font-size: 1.4rem;
  }

  /* Info Grid */
  .page-khuyen-mai__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__info-card {
    padding: 25px;
  }
  .page-khuyen-mai__info-title {
    font-size: 1.3rem;
  }

  /* Steps Grid */
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__step-card {
    padding: 20px;
  }
  .page-khuyen-mai__step-title {
    font-size: 1.4rem;
  }
  .page-khuyen-mai__step-buttons {
    flex-direction: column;
  }

  /* Tip List */
  .page-khuyen-mai__tip-item {
    font-size: 1rem;
    padding: 12px 15px;
  }

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

  /* Universal Images */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Buttons */
  .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;
  }
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__step-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Placeholder for long text content - not explicitly used on this page, but required for completeness */
  .page-khuyen-mai__home-content {
    height: auto; /* Allow content to expand */
    overflow-y: visible; /* No scrollbar */
    padding: 20px 15px;
  }

  /* Placeholder for game/sport/coop rows - not applicable for this page as non-homepage */
  .page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop {
    padding: 20px 10px;
  }

  /* Placeholder for slider wrapper/track - not applicable for this page as non-homepage */
  .page-khuyen-mai__slider-wrapper {
    overflow-x: auto;
  }
  .page-khuyen-mai__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .page-khuyen-mai__game-slide {
    flex: 0 0 150px; /* Smaller slide width */
    max-width: 150px;
  }

  /* Placeholder for banners top wrapper - not applicable for this page as non-homepage */
  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on mobile */
    gap: 10px;
  }
  .page-khuyen-mai__banner-item img {
    
    
  }

  /* Placeholder for blog masonry - not applicable for this page as non-homepage, but keeping the rule for completeness */
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr;
  }

  /* Placeholder for blog slider - not applicable for this page as non-homepage */
  .page-khuyen-mai__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__blog-slide {
    flex: 0 0 80%; /* Make slides wider for mobile */
    max-width: 80%;
    scroll-snap-align: start;
  }
}