.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background from shared.css */
}

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Fixed small top padding as per rules */
  padding-bottom: 60px;
  background-color: #FFFFFF;
}

.page-khuyen-mai__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 24px;
  box-sizing: border-box;
}

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

.page-khuyen-mai__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #1a7fb3;
  border-color: #1a7fb3;
}

.page-khuyen-mai__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #26A9E0;
}

.page-khuyen-mai__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-khuyen-mai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-khuyen-mai__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-khuyen-mai__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-khuyen-mai__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-khuyen-mai__promo-list-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-khuyen-mai__promo-card-content {
  padding: 25px;
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-khuyen-mai__promo-card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555555;
}

.page-khuyen-mai__terms-section {
  padding: 60px 0;
}

.page-khuyen-mai__terms-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #FFFFFF;
}

.page-khuyen-mai__terms-content p {
  margin-bottom: 20px;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
}

.page-khuyen-mai__faq-section {
  padding: 60px 0;
}

.page-khuyen-mai__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  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: 1rem;
  line-height: 1.7;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

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

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

/* General image responsiveness */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }

  .page-khuyen-mai__hero-content,
  .page-khuyen-mai__hero-image {
    flex: 1 1 100%;
    width: 100%;
  }

  .page-khuyen-mai__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

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

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

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

  .page-khuyen-mai__container,
  .page-khuyen-mai__promo-list-section .page-khuyen-mai__container,
  .page-khuyen-mai__terms-section .page-khuyen-mai__container,
  .page-khuyen-mai__faq-section .page-khuyen-mai__container,
  .page-khuyen-mai__cta-section .page-khuyen-mai__container {
    padding: 20px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

  .page-khuyen-mai__promo-card-content {
    padding: 20px;
  }

  .page-khuyen-mai__promo-card-title {
    font-size: 1.2rem;
  }

  .page-khuyen-mai__promo-card-text {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__terms-content {
    font-size: 1rem;
  }

  .page-khuyen-mai__terms-list {
    margin-left: 20px;
  }

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

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

  /* General images for content sections */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}