/* Base styles for page-khuyen-mai */
.page-khuyen-mai {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuyen-mai__section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.3;
}

.page-khuyen-mai__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Text Secondary */
}

.page-khuyen-mai__highlight {
  color: #F2C14E; /* Gold */
  font-weight: bold;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 15px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but content is below image */
  background: linear-gradient(0deg, #08160F 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
  border-radius: 10px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-khuyen-mai__description {
  font-size: 18px;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-khuyen-mai__btn-secondary {
  background: #F2FFF6; /* Text Main */
  color: #11A84E; /* Primary Color */
  border: 2px solid #11A84E;
}

.page-khuyen-mai__btn-secondary:hover {
  background: #E0EBE4;
  color: #0A4B2C;
}

.page-khuyen-mai__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

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

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #A7D9B8;
}

/* Categories Section */
.page-khuyen-mai__categories-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #A7D9B8;
}

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

.page-khuyen-mai__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #F2FFF6;
}

.page-khuyen-mai__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: #F2C14E; /* Gold */
  line-height: 1.3;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-title a:hover {
  text-decoration: underline;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-description {
  font-size: 15px;
  color: #A7D9B8;
  padding: 0 15px;
  flex-grow: 1;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-small {
  margin: 20px auto;
}

/* Featured Promos Section */
.page-khuyen-mai__featured-promos {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #A7D9B8;
}

.page-khuyen-mai__promo-detail {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__promo-detail--reversed {
  flex-direction: row-reverse;
}

.page-khuyen-mai__promo-detail img {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.page-khuyen-mai__promo-info {
  flex: 1;
  color: #F2FFF6;
}

.page-khuyen-mai__promo-title {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-khuyen-mai__promo-description {
  font-size: 16px;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-khuyen-mai__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-khuyen-mai__promo-list li {
  font-size: 16px;
  color: #A7D9B8;
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-khuyen-mai__promo-list li::before {
  content: '✔';
  color: #2AD16F; /* Button top gradient */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How To Claim Section */
.page-khuyen-mai__how-to-claim {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #A7D9B8;
}

.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-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6;
}

.page-khuyen-mai__step-icon {
  width: 60px;
  height: 60px;
  background-color: #2AD16F;
  color: #F2FFF6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-khuyen-mai__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-khuyen-mai__step-description {
  font-size: 15px;
  color: #A7D9B8;
}

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

/* Terms Section */
.page-khuyen-mai__terms-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #A7D9B8;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 30px;
  max-width: 900px;
  margin: 30px auto;
  color: #A7D9B8;
}

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

.page-khuyen-mai__terms-list a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-khuyen-mai__terms-list a:hover {
  color: #F2FFF6;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #A7D9B8;
}

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

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
}

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6;
  font-weight: bold;
}

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

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: #1E3A2A; /* Divider */
}

.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Gold */
}

.page-khuyen-mai__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px;
  text-align: center;
}

details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 25px 25px;
  background: #1E3A2A; /* Divider */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8;
  font-size: 16px;
}

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

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-khuyen-mai__cta-bottom-content {
  max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__promo-detail {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .page-khuyen-mai__promo-detail--reversed {
    flex-direction: column;
  }

  .page-khuyen-mai__promo-detail img {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__promo-info {
    text-align: center;
  }

  .page-khuyen-mai__promo-list {
    text-align: left;
    margin: 0 auto 25px;
  }
}

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

  .page-khuyen-mai__hero-section {
    margin-bottom: 30px;
  }

  .page-khuyen-mai__hero-image img {
    object-fit: contain !important; /* HERO 主图区域 */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__hero-content {
    margin-top: -50px;
    padding: 20px 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-khuyen-mai__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-khuyen-mai__section-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 20px;
  }

  .page-khuyen-mai__text-block {
    font-size: 15px;
  }

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

  .page-khuyen-mai__promo-card img {
    
  }

  .page-khuyen-mai__promo-card .page-khuyen-mai__card-title {
    font-size: 18px;
  }

  .page-khuyen-mai__promo-detail {
    padding: 15px;
    margin-bottom: 40px;
  }

  .page-khuyen-mai__promo-detail img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__promo-title {
    font-size: 24px;
  }

  .page-khuyen-mai__promo-description,
  .page-khuyen-mai__promo-list li {
    font-size: 15px;
  }

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

  .page-khuyen-mai__step-item {
    padding: 25px;
  }

  .page-khuyen-mai__step-title {
    font-size: 20px;
  }

  .page-khuyen-mai__terms-list {
    padding-left: 20px;
    font-size: 15px;
  }

  details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
    padding: 15px 20px;
  }

  .page-khuyen-mai__faq-qtext {
    font-size: 16px;
  }

  .page-khuyen-mai__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }

  details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }
  
  /* General image and container rules for mobile */
  .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,
  .page-khuyen-mai__promo-detail {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Ensure no horizontal scroll for content areas */
  .page-khuyen-mai__intro-section,
  .page-khuyen-mai__categories-section,
  .page-khuyen-mai__featured-promos,
  .page-khuyen-mai__how-to-claim,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-bottom {
    overflow-x: hidden;
  }
}