/* style/khuyen-mai.css */
.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-khuyen-mai__section {
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-khuyen-mai__section-title {
  font-size: 2.8em;
  color: #F2C14E; /* Main color */
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-khuyen-mai__sub-title {
  font-size: 1.8em;
  color: #FFD36B; /* Auxiliary color */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-khuyen-mai__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF6D6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding to avoid header overlap */
}

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

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

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over image for visual flow, not overlay */
  background: rgba(17, 17, 17, 0.9); /* Card BG with opacity */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border */
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2C14E;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-khuyen-mai__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #0A0A0A; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-khuyen-mai__button-small {
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-khuyen-mai__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyen-mai__card:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai__card-title {
  font-size: 1.6em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuyen-mai__card-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #0A0A0A;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-khuyen-mai__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Auxiliary color */
  border: 2px solid #FFD36B; /* Border */
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  margin-top: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-secondary:hover {
  background: #FFD36B;
  color: #111111; /* Card BG */
  transform: translateY(-2px);
}

/* Terms & Conditions */
.page-khuyen-mai__terms-conditions {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-khuyen-mai__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-khuyen-mai__image-full-width {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* How to Claim */
.page-khuyen-mai__how-to-claim {
  background-color: #111111; /* Card BG */
}

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

.page-khuyen-mai__steps-list li {
  background-color: rgba(242, 193, 78, 0.1);
  border-left: 5px solid #F2C14E;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #F2C14E;
  color: #0A0A0A;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

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

.page-khuyen-mai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color */
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

.page-khuyen-mai__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  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: 0 25px 20px;
  font-size: 1em;
  color: #FFF6D6;
}

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

/* Conclusion */
.page-khuyen-mai__conclusion {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }

  .page-khuyen-mai__section-title {
    font-size: 2.2em;
  }

  .page-khuyen-mai__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-khuyen-mai__content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai__container {
    padding: 15px;
  }

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

  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    min-height: auto;
  }

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

  .page-khuyen-mai__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    max-width: 95%;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  .page-khuyen-mai__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

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

  .page-khuyen-mai__cta-button,
  .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-left: auto;
    margin-right: auto;
    display: block;
  }

  .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;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-khuyen-mai__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__card {
    padding: 20px;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.4em;
  }

  .page-khuyen-mai__card-text {
    font-size: 0.95em;
  }

  .page-khuyen-mai__steps-list {
    margin-top: 30px;
  }

  .page-khuyen-mai__steps-list li {
    padding: 15px;
    font-size: 1em;
    gap: 10px;
  }

  .page-khuyen-mai__step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9em;
  }

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

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

  /* General image responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* No specific home carousel or guide box for khuyen-mai page, but if they were present, they would need specific 768px rules */
  /* For example, if a carousel was present: */
  /* .page-khuyen-mai__hero-slider-nav-arrow { display: none; } */
  /* .page-khuyen-mai__hero-slider-dots { display: flex; } */

  /* If a guide box (like homepage) was present on this page: */
  /* .page-khuyen-mai__guide-grid { grid-template-columns: repeat(6, 1fr); } */
  /* .page-khuyen-mai__guide-card { padding-top: 0 !important; } */
  /* .page-khuyen-mai__guide-card--pos-1, .page-khuyen-mai__guide-card--pos-2 { grid-column: span 3; } */
  /* .page-khuyen-mai__guide-card--pos-3, .page-khuyen-mai__guide-card--pos-4, .page-khuyen-mai__guide-card--pos-5 { grid-column: span 2; } */

  /* Home content box (if present, like on homepage) */
  /* .page-khuyen-mai__home-content-box { max-width: 100%; height: auto; } */
  /* .page-khuyen-mai__home-content-inner { height: auto; overflow: visible; } */

  /* Blog card section (if present) */
  /* .page-khuyen-mai__blog-grid { grid-template-columns: 1fr; } */
}