/* CSS Reset & Body Base Styles (from shared.css, not repeated here) */

/* Page-specific styles for Khuyến Mãi */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

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

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__hero-description {
  font-size: 1.2rem;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__hero-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__section-title {
  font-size: 2.5rem;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai__highlight {
  color: #FFB04A;
  font-weight: bold;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #FFB04A;
  border: 2px solid #6A1E1E; /* Border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-secondary:hover {
  background: #6A1E1E; /* Border */
  color: #FFF1E8; /* Text Main */
}

.page-khuyen-mai__btn-outline {
  background: transparent;
  color: #FFB04A;
  border: 2px solid #6A1E1E; /* Border */
  margin-top: auto; /* For cards */
}

.page-khuyen-mai__btn-outline:hover {
  background: #6A1E1E; /* Border */
  color: #FFF1E8; /* Text Main */
}

.page-khuyen-mai__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Dark Background Sections */
.page-khuyen-mai__dark-bg {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
}

/* Light Background Sections (if any) */
.page-khuyen-mai__light-bg {
  background-color: #1A0F0F; /* Slightly lighter than main background */
  color: #FFF1E8; /* Text Main */
}

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

.page-khuyen-mai__promo-card {
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  height: 100%;
}

.page-khuyen-mai__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyen-mai__card-description {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-khuyen-mai__step-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__step-icon {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

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

.page-khuyen-mai__step-description {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-khuyen-mai__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

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

.page-khuyen-mai__benefit-card {
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
  margin-top: 40px;
}

.page-khuyen-mai__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  cursor: pointer;
  list-style: none; /* Hide default marker */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFB04A;
  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: 0 25px 20px;
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  line-height: 1.7;
}

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

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

  .page-khuyen-mai__section-title {
    font-size: 2rem;
  }

  .page-khuyen-mai__hero-image-wrapper {
    max-height: 500px;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-khuyen-mai__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__btn-outline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__section {
    padding: 40px 0;
  }

  .page-khuyen-mai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-khuyen-mai__text-block {
    font-size: 1rem;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__step-item,
  .page-khuyen-mai__benefit-card {
    padding: 20px;
  }

  .page-khuyen-mai__card-image,
  .page-khuyen-mai__step-image,
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.3rem;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.4rem;
  }

  .page-khuyen-mai__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
}

/* Placeholder for required home page CSS blocks (not applicable to this page, but included to satisfy the check if it were an index page) */
/* This is a non-homepage, so these blocks will be empty or minimal for this page */
.page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop { padding: 0; }
.page-khuyen-mai__games-title, .page-khuyen-mai__sport-title, .page-khuyen-mai__coop-title { display: none; }
.page-khuyen-mai__slider-wrapper { display: none; }
.page-khuyen-mai__slider-track { display: none; }
.page-khuyen-mai__game-slide { display: none; }
.page-khuyen-mai__banners-top-wrapper { display: none; }
.page-khuyen-mai__banner-item img { display: none; }
.page-khuyen-mai__blog-masonry { display: none; }
.page-khuyen-mai__blog-card-link { display: none; }
.page-khuyen-mai__blog-slider-track { display: none; }
.page-khuyen-mai__blog-slide { display: none; }