/* style/khuyen-mai.css */

:root {
  --page-khuyen-mai-primary-color: #017439;
  --page-khuyen-mai-secondary-color: #FFFFFF;
  --page-khuyen-mai-register-color: #C30808;
  --page-khuyen-mai-login-color: #C30808;
  --page-khuyen-mai-background-color: #FFFFFF;
  --page-khuyen-mai-register-login-font-color: #FFFF00;
  --page-khuyen-mai-dark-text: #333333;
  --page-khuyen-mai-light-text: #ffffff;
}

.page-khuyen-mai {
  color: var(--page-khuyen-mai-dark-text); /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--page-khuyen-mai-background-color);
}

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

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--page-khuyen-mai-dark-text);
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-khuyen-mai-primary-color);
}

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

.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: 1.05rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-khuyen-mai__btn-primary {
  background-color: var(--page-khuyen-mai-register-color); /* #C30808 */
  color: var(--page-khuyen-mai-register-login-font-color); /* #FFFF00 */
  border: 2px solid var(--page-khuyen-mai-register-color);
}

.page-khuyen-mai__btn-primary:hover {
  background-color: darken(var(--page-khuyen-mai-register-color), 10%);
  border-color: darken(var(--page-khuyen-mai-register-color), 10%);
}

.page-khuyen-mai__btn-secondary {
  background-color: var(--page-khuyen-mai-primary-color); /* #017439 */
  color: var(--page-khuyen-mai-light-text); /* #FFFFFF */
  border: 2px solid var(--page-khuyen-mai-primary-color);
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: darken(var(--page-khuyen-mai-primary-color), 10%);
  border-color: darken(var(--page-khuyen-mai-primary-color), 10%);
}

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

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

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 60px 0;
  background-color: var(--page-khuyen-mai-background-color);
}

.page-khuyen-mai__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-khuyen-mai-primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-khuyen-mai__section-description {
  font-size: 1.1rem;
  color: var(--page-khuyen-mai-dark-text);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-khuyen-mai__feature-item {
  flex: 1 1 30%;
  min-width: 280px;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--page-khuyen-mai-secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--page-khuyen-mai-primary-color);
}

.page-khuyen-mai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-khuyen-mai__feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--page-khuyen-mai-primary-color);
  margin-bottom: 10px;
}

.page-khuyen-mai__feature-text {
  font-size: 1rem;
  color: var(--page-khuyen-mai-dark-text);
}

/* Promotions Section */
.page-khuyen-mai__promo-section {
  padding: 60px 0;
  background-color: var(--page-khuyen-mai-primary-color);
  color: var(--page-khuyen-mai-light-text);
}

.page-khuyen-mai__promo-section .page-khuyen-mai__section-title,
.page-khuyen-mai__promo-section .page-khuyen-mai__section-description {
  color: var(--page-khuyen-mai-light-text);
}

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

.page-khuyen-mai__promo-card {
  background-color: var(--page-khuyen-mai-secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-content {
  padding: 25px;
  color: var(--page-khuyen-mai-dark-text);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-khuyen-mai-primary-color);
  margin-bottom: 15px;
}

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

/* Guide Section */
.page-khuyen-mai__guide-section {
  padding: 60px 0;
  background-color: var(--page-khuyen-mai-background-color);
}

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

.page-khuyen-mai__guide-step-item {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background-color: var(--page-khuyen-mai-secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-top: 60px;
}

.page-khuyen-mai__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--page-khuyen-mai-primary-color);
  color: var(--page-khuyen-mai-light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 3px solid var(--page-khuyen-mai-secondary-color);
}

.page-khuyen-mai__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-khuyen-mai-primary-color);
  margin-bottom: 10px;
}

.page-khuyen-mai__step-text {
  font-size: 1rem;
  color: var(--page-khuyen-mai-dark-text);
}

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

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
  background-color: var(--page-khuyen-mai-background-color);
}

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

.page-khuyen-mai__faq-item {
  background-color: var(--page-khuyen-mai-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-khuyen-mai-primary-color);
  outline: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-khuyen-mai-primary-color);
  margin-left: 15px;
  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;
  color: var(--page-khuyen-mai-dark-text);
}

/* Call to Action Section */
.page-khuyen-mai__action-section {
  padding: 60px 0;
  background-color: var(--page-khuyen-mai-primary-color);
  color: var(--page-khuyen-mai-light-text);
  text-align: center;
}

.page-khuyen-mai__action-content .page-khuyen-mai__section-title,
.page-khuyen-mai__action-content .page-khuyen-mai__section-description {
  color: var(--page-khuyen-mai-light-text);
}

.page-khuyen-mai__action-section .page-khuyen-mai__cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

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

.page-khuyen-mai__section,
.page-khuyen-mai__card,
.page-khuyen-mai__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile Responsive Styles (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. HERO 双栏 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-khuyen-mai__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }

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

  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
    text-align: center;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: center;
  }

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

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

  /* 2. 模块1 三栏正圆图 */
  .page-khuyen-mai__intro-section {
    padding: 40px 0;
  }

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

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

  .page-khuyen-mai__features-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__feature-item {
    min-width: unset;
    padding: 15px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 180px;
    height: 180px;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__feature-title {
    font-size: 1.3rem;
  }

  /* 3. 七 Tab 游戏区 (Không áp dụng cho trang này) */
  /* .page-khuyen-mai__game-tabs { display: block; } */

  /* 4. 教程长文 / 促销 / 信任 / FAQ / intro 排版 */
  .page-khuyen-mai__promo-section {
    padding: 40px 0;
  }

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

  .page-khuyen-mai__promo-image {
    height: 200px;
  }

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

  .page-khuyen-mai__promo-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__promo-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

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

  .page-khuyen-mai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-khuyen-mai__guide-step-item {
    padding-top: 50px;
  }

  .page-khuyen-mai__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    top: -15px;
  }

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

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

  .page-khuyen-mai__faq-list {
    margin-top: 30px;
  }

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

  .page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
  }

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

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

  /* 5. 通用图片与容器 */
  .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__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Exception for circular images */
  .page-khuyen-mai__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 6. 按钮与按钮容器 */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-khuyen-mai__cta-buttons--center {
    padding: 0 15px;
  }
}