/* ===== Khuyến Mãi Page Styles ===== */
.page-khuyen-mai {
  color: #333333;
  background: #FFFFFF;
  line-height: 1.6;
}

/* Hero Section */
.page-khuyen-mai__hero {
  padding-top: 10px;
  padding-bottom: 32px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 16px;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(1, 116, 57, 0.15);
  display: block;
}

.page-khuyen-mai__hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.page-khuyen-mai__hero-title {
  color: #017439;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__hero-desc {
  color: #444;
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Buttons */
.page-khuyen-mai__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Promo Grid */
.page-khuyen-mai__promo-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
  background: #FFFFFF;
}

.page-khuyen-mai__section-title {
  text-align: center;
  color: #017439;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-khuyen-mai__section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 32px;
  font-size: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__promo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.page-khuyen-mai__promo-card {
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-card:hover {
  box-shadow: 0 8px 30px rgba(1, 116, 57, 0.12);
}

.page-khuyen-mai__promo-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-tag {
  display: inline-block;
  background: #017439;
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 12px;
}

.page-khuyen-mai__promo-title {
  color: #017439;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-khuyen-mai__promo-desc {
  color: #555;
  flex: 1;
  margin-bottom: 16px;
}

.page-khuyen-mai__promo-link {
  display: inline-block;
  background: #017439;
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  transition: background 0.2s;
}

.page-khuyen-mai__promo-link:hover {
  background: #015d2e;
}

/* Rules Section */
.page-khuyen-mai__rules {
  background: #f5faf7;
  padding: 48px 0;
}

.page-khuyen-mai__rules-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-khuyen-mai__rules-title {
  color: #017439;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-khuyen-mai__rules-intro {
  color: #555;
  margin-bottom: 24px;
}

.page-khuyen-mai__rules-list {
  padding-left: 20px;
  color: #333;
}

.page-khuyen-mai__rules-item {
  margin-bottom: 12px;
  padding-left: 8px;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
  padding: 48px 0;
  background: #FFFFFF;
}

.page-khuyen-mai__guide-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-khuyen-mai__guide-title {
  text-align: center;
  color: #017439;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-khuyen-mai__guide-desc {
  text-align: center;
  color: #555;
  margin-bottom: 32px;
}

.page-khuyen-mai__step {
  background: #f8fbf9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.page-khuyen-mai__step-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #017439;
  list-style: none;
  transition: background 0.2s;
}

.page-khuyen-mai__step summary::-webkit-details-marker {
  display: none;
}

.page-khuyen-mai__step:hover summary {
  background: #eef7f2;
}

.page-khuyen-mai__step-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.page-khuyen-mai__step-content {
  padding: 0 20px 20px;
  color: #444;
}

.page-khuyen-mai__btn-row {
  margin-top: 16px;
}

/* CTA Banner */
.page-khuyen-mai__cta-banner {
  background: linear-gradient(135deg, #017439 0%, #015d2e 100%);
  padding: 48px 0;
}

.page-khuyen-mai__cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.page-khuyen-mai__cta-figure {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.page-khuyen-mai__cta-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  display: block;
}

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

.page-khuyen-mai__cta-title {
  color: #FFFF00;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__cta-desc {
  color: #FFFFFF;
  margin-bottom: 24px;
}

.page-khuyen-mai__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-khuyen-mai__hero {
    padding-top: 10px;
    padding-bottom: 24px;
  }

  .page-khuyen-mai__hero-image {
    aspect-ratio: 2 / 1;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .page-khuyen-mai__promo-list {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__promo-image {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__btn {
    max-width: 100%;
  }

  .page-khuyen-mai__step-summary {
    flex-direction: row;
  }

  .page-khuyen-mai__cta-inner {
    flex-direction: column;
  }

  .page-khuyen-mai img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai__hero-actions,
  .page-khuyen-mai__cta-actions {
    flex-direction: column;
  }

  .page-khuyen-mai__btn {
    width: 100%;
    text-align: center;
  }
}

/* Desktop container width safety */
@media (min-width: 769px) {
  .page-khuyen-mai__hero-actions,
  .page-khuyen-mai__cta-actions {
    width: 100%;
    max-width: 480px;
  }
}