.page-khuyen-mai {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for main content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* HERO Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #7A0E0E; /* Deep Red for hero section background */
  text-align: center;
}

.page-khuyen-mai__hero-image {
  margin-bottom: 20px;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* H1 font size with clamp */
  color: #F4D34D; /* Gold color for main title */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.15rem;
  color: #FFF5E1;
  margin-bottom: 30px;
}

/* General Sections */
.page-khuyen-mai__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-khuyen-mai__section:last-of-type {
  border-bottom: none;
}

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  color: #F4D34D; /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  line-height: 1.3;
}

.page-khuyen-mai__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF5E1; /* Main text color */
}

/* Dark background sections */
.page-khuyen-mai__dark-section {
  background-color: #C91F17; /* Main brand color for dark sections */
  color: #ffffff; /* White text for contrast */
}

.page-khuyen-mai__dark-section .page-khuyen-mai__section-title {
  color: #FFCC66; /* Glow color for titles on dark sections */
}

.page-khuyen-mai__dark-section .page-khuyen-mai__text-block,
.page-khuyen-mai__dark-section .page-khuyen-mai__list li {
  color: #ffffff; /* White text for dark sections */
}

/* Buttons */
.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red for text on gold button for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.page-khuyen-mai__btn-secondary {
  background-color: transparent;
  color: #F4D34D; /* Gold color for text */
  border: 2px solid #F2B544; /* Border color */
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: rgba(244, 211, 77, 0.1); /* Slight hover effect */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-khuyen-mai__card {
  background-color: #D32F2F; /* Card background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #FFF5E1; /* Text color for cards */
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 225px; /* Fixed height for card images, object-fit will handle aspect ratio */
  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: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-khuyen-mai__card-title a {
  color: #F4D34D; /* Gold color for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-khuyen-mai__card-title a:hover {
  color: #FFCC66; /* Glow color on hover */
}

.page-khuyen-mai__card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__card-button {
  margin-top: auto; /* Push button to bottom */
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red for text on gold button for contrast */
  border: none;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__card-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* Lists (Terms & How-to) */
.page-khuyen-mai__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 900px;
}

.page-khuyen-mai__list li {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1rem;
  color: #FFF5E1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__ordered-list {
  counter-reset: list-counter;
}

.page-khuyen-mai__ordered-list li {
  position: relative;
  padding-left: 40px;
}

.page-khuyen-mai__ordered-list li::before {
  counter-increment: list-counter;
  content: "Bước " counter(list-counter) ":";
  position: absolute;
  left: 10px;
  top: 15px;
  font-weight: 700;
  color: #F4D34D; /* Gold color for step numbers */
}

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

.page-khuyen-mai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFF5E1;
  cursor: pointer;
  background-color: #E53935; /* Auxiliary color for FAQ question */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details summary */
}

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

.page-khuyen-mai__faq-question:hover {
  background-color: #C91F17; /* Main color on hover */
}

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: #FFD86A; /* Gold color for toggle icon */
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  content: "-"; /* Change to minus when open */
  transform: rotate(45deg); /* Simple visual change for open state */
}
.page-khuyen-mai__faq-item[open] > .page-khuyen-mai__faq-question {
  background-color: #C91F17; /* Main color when open */
}

.page-khuyen-mai__faq-answer {
  padding: 15px 25px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: #FFF5E1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Images */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images cover their area */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .page-khuyen-mai__container {
    padding: 0 15px !important; /* Force padding */
  }

  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px !important;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important; /* Adjust H1 for smaller screens */
    margin-bottom: 10px !important;
  }

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

  .page-khuyen-mai__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px !important; /* Add padding to button container */
  }

  .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: 12px 20px !important; /* Adjust padding */
    font-size: 1rem !important;
  }

  /* General Sections */
  .page-khuyen-mai__section {
    padding: 40px 0 !important; /* Smaller vertical padding */
  }

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

  .page-khuyen-mai__text-block {
    font-size: 0.95rem !important;
  }

  /* Promotion Cards Grid */
  .page-khuyen-mai__promotion-cards {
    grid-template-columns: 1fr !important; /* Single column for cards */
    gap: 20px !important;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.2rem !important;
  }

  .page-khuyen-mai__card-description {
    font-size: 0.9rem !important;
  }

  /* Lists */
  .page-khuyen-mai__list {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 10px !important;
  }

  .page-khuyen-mai__list li {
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
  }

  .page-khuyen-mai__ordered-list li {
    padding-left: 35px !important;
  }

  .page-khuyen-mai__ordered-list li::before {
    left: 8px !important;
    top: 12px !important;
    font-size: 0.95rem !important;
  }

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

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

  .page-khuyen-mai__faq-toggle {
    font-size: 1.2rem !important;
  }

  .page-khuyen-mai__faq-answer {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Universal Image and Container responsiveness */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__hero-image,
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__promotion-cards,
  .page-khuyen-mai__list,
  .page-khuyen-mai__faq-list,
  .page-khuyen-mai__faq-item,
  .page-khuyen-mai__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}