/* CSS for Khuyến Mãi Page */
.page-khuyen-mai {
  background-color: #0D0E12; /* Background from custom colors */
  color: #FFF3E6; /* Text Main from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding as per rules */
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers area */
}

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

.page-khuyen-mai__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #FF8C1A; /* Main brand color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* CTA Buttons */
.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff; /* Always white for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Main brand color */
  border: 2px solid #A84F0C; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-secondary:hover {
  background: #FF8C1A;
  color: #17191F;
  border-color: #FF8C1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.5);
}

/* General Content Sections */
.page-khuyen-mai__content-section {
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai__dark-section {
  background-color: #17191F; /* Card BG for contrast */
  color: #FFF3E6;
}

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.page-khuyen-mai__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFA53A, #D96800);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-khuyen-mai__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #FFF3E6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__image-inline {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-khuyen-mai__promotion-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 15px #FFB04D; /* Glow effect */
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__card-title {
  font-size: 1.4em;
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuyen-mai__card-description {
  font-size: 0.95em;
  color: #FFF3E6;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__card-button {
  text-align: center;
  margin-top: auto; /* Push button to bottom */
}

/* Terms & Conditions / How to Claim Lists */
.page-khuyen-mai__terms-list,
.page-khuyen-mai__advantage-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto 0;
}

.page-khuyen-mai__terms-list li,
.page-khuyen-mai__advantage-list li {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-khuyen-mai__terms-list li:hover,
.page-khuyen-mai__advantage-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 10px #FFB04D;
}

.page-khuyen-mai__list-title {
  font-size: 1.3em;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-khuyen-mai__terms-list p,
.page-khuyen-mai__advantage-list p {
  font-size: 1em;
  color: #FFF3E6;
  line-height: 1.7;
}

/* Steps Grid */
.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-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__step-title {
  font-size: 1.4em;
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuyen-mai__step-card p {
  font-size: 0.95em;
  color: #FFF3E6;
  line-height: 1.6;
}

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

.page-khuyen-mai__faq-question {
  font-size: 1.3em;
  color: #FFA53A;
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 18px 25px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__faq-question:hover {
  background-color: #FF8C1A;
  color: #17191F;
}

.page-khuyen-mai__faq-answer {
  font-size: 1em;
  color: #FFF3E6;
  line-height: 1.7;
  padding: 10px 25px 20px;
  background-color: rgba(23, 25, 31, 0.8); /* Slightly transparent background for answer */
  border-left: 1px solid #A84F0C;
  border-right: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-top: -15px; /* Overlap with question slightly */
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-khuyen-mai__container {
    padding: 0 15px; /* Adjust padding for smaller screens */
  }

  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Keep small top padding */
    padding-bottom: 30px;
  }

  .page-khuyen-mai__main-title {
    font-size: 2.2em; /* Smaller font size for H1 */
    margin-bottom: 15px;
  }

  .page-khuyen-mai__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

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

  .page-khuyen-mai__section-title {
    font-size: 2em;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__text-block {
    font-size: 0.95em;
  }

  /* General images and containers */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .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__promotion-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 25px;
  }

  .page-khuyen-mai__promotion-card,
  .page-khuyen-mai__terms-list li,
  .page-khuyen-mai__advantage-list li,
  .page-khuyen-mai__step-card,
  .page-khuyen-mai__faq-question,
  .page-khuyen-mai__faq-answer {
    padding: 20px;
  }

  .page-khuyen-mai__card-image {
    height: 180px; /* Adjust card image height */
  }

  .page-khuyen-mai__card-title,
  .page-khuyen-mai__list-title,
  .page-khuyen-mai__step-title,
  .page-khuyen-mai__faq-question {
    font-size: 1.2em;
  }

  .page-khuyen-mai__faq-answer {
    margin-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}