/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #FFF6D6); /* Default text color from custom palette */
  background-color: var(--background-color, #0A0A0A); /* Default background color from custom palette */
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  color: var(--main-color, #F2C14E); /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-khuyen-mai__text-block {
  font-size: 1.1em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* As per fixed header rule, small top padding */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  margin-bottom: 20px; /* Space between image and content */
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Minimum height for hero image */
}

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

.page-khuyen-mai__hero-title {
  color: #ffffff; /* Ensure white text on potentially branded image */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  color: #f0f0f0; /* Slightly off-white for contrast */
  margin-bottom: 30px;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: #111111; /* Card BG color */
  color: var(--main-color, #F2C14E);
  border: 2px solid var(--border-color, #3A2A12);
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--main-color, #F2C14E);
  color: #111111;
  border-color: var(--main-color, #F2C14E);
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 60px 0;
}

/* Types Section */
.page-khuyen-mai__types-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__promotion-card {
  background-color: var(--card-bg-color, #111111);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-khuyen-mai__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  color: var(--main-color, #F2C14E);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-khuyen-mai__card-description {
  font-size: 1em;
  color: var(--text-main, #FFF6D6);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-khuyen-mai__promotion-card .page-khuyen-mai__btn-secondary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* Featured Section */
.page-khuyen-mai__featured-section {
  padding: 80px 0;
  background-color: var(--main-color, #F2C14E); /* Use main color as background */
  color: #ffffff; /* White text on main color background */
}

.page-khuyen-mai__featured-section .page-khuyen-mai__section-title {
  color: #111111; /* Dark title on light background */
}

.page-khuyen-mai__featured-section .page-khuyen-mai__text-block {
  color: #111111; /* Dark text on light background */
}

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

.page-khuyen-mai__feature-item {
  background-color: rgba(17, 17, 17, 0.8); /* Semi-transparent dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__feature-title {
  font-size: 1.8em;
  color: var(--aux-color, #FFD36B); /* Auxiliary color for feature titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyen-mai__feature-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Claim Section */
.page-khuyen-mai__claim-section {
  padding: 60px 0;
}

.page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-khuyen-mai__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-khuyen-mai__step-item {
  background-color: var(--card-bg-color, #111111);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-khuyen-mai__step-item:last-child {
  margin-bottom: 0;
}

.page-khuyen-mai__step-title {
  font-size: 1.4em;
  color: var(--main-color, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuyen-mai__step-item p {
  color: var(--text-main, #FFF6D6);
}

.page-khuyen-mai__step-item a {
  color: var(--aux-color, #FFD36B);
  text-decoration: underline;
}

.page-khuyen-mai__step-item a:hover {
  color: #ffffff;
}

.page-khuyen-mai__steps-image-wrapper {
  text-align: center;
}

.page-khuyen-mai__steps-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Terms & Conditions Section */
.page-khuyen-mai__tnc-section {
  padding: 60px 0;
}

.page-khuyen-mai__tnc-list {
  list-style: disc;
  padding-left: 30px;
  color: var(--text-main, #FFF6D6);
  margin-top: 30px;
}

.page-khuyen-mai__tnc-item {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-khuyen-mai__tnc-section a {
  color: var(--aux-color, #FFD36B);
  text-decoration: underline;
}

.page-khuyen-mai__tnc-section a:hover {
  color: #ffffff;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section {
  padding: 80px 0;
  background-color: var(--background-color, #0A0A0A); /* Dark background */
  color: var(--text-main, #FFF6D6); /* Light text */
}

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

.page-khuyen-mai__reason-card {
  background-color: var(--card-bg-color, #111111);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color, #3A2A12);
}

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

.page-khuyen-mai__reason-title {
  font-size: 1.6em;
  color: var(--main-color, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuyen-mai__reason-description {
  font-size: 1em;
  color: var(--text-main, #FFF6D6);
  flex-grow: 1;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__faq-item {
  background-color: var(--card-bg-color, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--main-color, #F2C14E);
  background-color: #1a1a1a; /* Slightly darker for summary */
  list-style: none; /* Remove default marker for details */
}

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

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