/* style/khuyen-mai.css */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

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

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

.page-khuyen-mai__top-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  text-align: center;
  padding-top: 10px; /* Specific top padding, not var(--header-offset) */
  padding-bottom: 60px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFF00; /* Specific color for main title */
}

.page-khuyen-mai__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__text-block {
  color: #f0f0f0;
}

.page-khuyen-mai__image-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
}

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

.page-khuyen-mai__image-caption {
  font-size: 0.95rem;
  color: #666666;
  margin-top: 10px;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__image-caption {
  color: #cccccc;
}

.page-khuyen-mai__promo-types {
  background-color: #017439;
  color: #ffffff;
}

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

.page-khuyen-mai__promo-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__image-figure {
  margin: 15px 0 20px 0;
  width: 100%;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-khuyen-mai__card-btn {
  align-self: center;
  width: 100%;
  text-align: center;
}

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

.page-khuyen-mai__guide-step {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-khuyen-mai__step-number {
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-khuyen-mai__step-description {
  font-size: 0.95rem;
  color: #555555;
}

.page-khuyen-mai__terms-list,
.page-khuyen-mai__tips-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-khuyen-mai__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #333333;
}

.page-khuyen-mai__list-item::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__list-item {
  color: #f0f0f0;
}

.page-khuyen-mai__faq-section {
  background-color: #017439;
  color: #ffffff;
}

.page-khuyen-mai__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: #017439;
  padding: 18px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.page-khuyen-mai__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item.active .page-khuyen-mai__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  color: #555555;
}

.page-khuyen-mai__faq-item.active .page-khuyen-mai__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-bottom: 20px;
}

.page-khuyen-mai__faq-answer p {
  font-size: 1rem;
  margin-top: 15px;
  margin-bottom: 0;
  color: #555555;
}

.page-khuyen-mai__conclusion-section {
  text-align: center;
  padding-bottom: 60px;
}

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

@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-khuyen-mai__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }
  .page-khuyen-mai__intro-text {
    font-size: 1.1rem;
  }
  .page-khuyen-mai__text-block, .page-khuyen-mai__list-item, .page-khuyen-mai__faq-answer p {
    font-size: 1rem;
  }
  .page-khuyen-mai__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyen-mai__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 顶区标题 + 双 CTA */
  .page-khuyen-mai__top-section {
    padding-top: 10px !important; /* Force small top padding */
    padding-bottom: 40px;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-khuyen-mai__intro-text {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-khuyen-mai__top-cta {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 单栏长文容器 */
  .page-khuyen-mai__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__section {
    padding: 30px 0;
  }
  .page-khuyen-mai__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }
  .page-khuyen-mai__text-block {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  /* 通用图片与 figure */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-khuyen-mai__image-figure {
    margin: 20px auto;
  }
  .page-khuyen-mai__image-caption {
    font-size: 0.85rem;
  }

  /* 按钮与按钮容器 */
  .page-khuyen-mai__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__promo-card {
    padding: 20px;
  }
  .page-khuyen-mai__card-title {
    font-size: 1.3rem;
  }
  .page-khuyen-mai__card-description {
    font-size: 0.95rem;
  }
  .page-khuyen-mai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__guide-step {
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-khuyen-mai__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    top: -20px;
  }
  .page-khuyen-mai__step-title {
    font-size: 1.2rem;
  }
  .page-khuyen-mai__step-description {
    font-size: 0.9rem;
  }

  /* FAQ 区块 */
  .page-khuyen-mai__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-khuyen-mai__faq-answer {
    padding: 0 20px;
  }
  .page-khuyen-mai__faq-answer p {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__cta-bottom {
    margin-top: 30px;
  }
  .page-khuyen-mai__list-item {
    font-size: 0.95rem;
    padding-left: 25px;
  }
  .page-khuyen-mai__list-item::before {
    font-size: 0.95rem;
  }
}