/* ===== Desktop Styles ===== */
.page-khuyen-mai {
  background: #0D0E12;
  color: #FFF3E6;
}

.page-khuyen-mai__hero-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 10px 16px 0;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 17/5;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.page-khuyen-mai__hero-content {
  text-align: center;
  margin-top: 24px;
}

.page-khuyen-mai__main-title {
  color: #FFF3E6;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 800px;
  margin: 0 auto 12px;
}

.page-khuyen-mai__hero-desc {
  color: #FFF3E6;
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-khuyen-mai__cta-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #17191F;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid #FFB04D;
  transition: transform .2s, box-shadow .2s;
}

.page-khuyen-mai__cta-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255,176,77,.4);
}

.page-khuyen-mai__intro-section {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.page-khuyen-mai__section-title {
  color: #FFA53A;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-khuyen-mai__intro-text {
  color: #FFF3E6;
  line-height: 1.7;
  max-width: 800px;
}

.page-khuyen-mai__promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.page-khuyen-mai__promo-card {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.page-khuyen-mai__promo-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.page-khuyen-mai__promo-info h3 {
  color: #FFF3E6;
  font-size: 1.25rem;
  margin: 0;
}

.page-khuyen-mai__promo-info p {
  color: #FFF3E6;
  font-size: .95rem;
  line-height: 1.5;
  flex: 1;
}

.page-khuyen-mai__promo-btn {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #17191F;
  font-weight: 700;
  text-align: center;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  transition: transform .2s;
}

.page-khuyen-mai__promo-btn:hover {
  transform: scale(1.03);
}

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

.page-khuyen-mai__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-khuyen-mai__guide-item {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 12px 16px;
}

.page-khuyen-mai__guide-item summary {
  list-style: none;
  cursor: pointer;
}

.page-khuyen-mai__guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page-khuyen-mai__guide-title {
  font-weight: 600;
  color: #FFF3E6;
  font-size: 1.1rem;
}

.page-khuyen-mai__guide-toggle {
  font-size: 1.4rem;
  color: #FFA53A;
  flex-shrink: 0;
}

.page-khuyen-mai__guide-content {
  margin-top: 12px;
  color: #FFF3E6;
  line-height: 1.6;
}

.page-khuyen-mai__guide-content a {
  color: #FFA53A;
}

.page-khuyen-mai__terms-section {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.page-khuyen-mai__terms-text {
  color: #FFF3E6;
  line-height: 1.7;
}

.page-khuyen-mai__terms-text a {
  color: #FFA53A;
}

.page-khuyen-mai__logo-grid-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.page-khuyen-mai__logo-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: contain;
  background: #17191F;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #A84F0C;
}

.page-khuyen-mai__logo-grid-section .page-khuyen-mai__logo-image:nth-child(5) {
  grid-column: 2;
}

.page-khuyen-mai__logo-grid-section .page-khuyen-mai__logo-image:nth-child(6) {
  grid-column: 3;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  .page-khuyen-mai__hero-section {
    padding: 8px 12px 0;
  }

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

  .page-khuyen-mai__hero-content {
    margin-top: 16px;
  }

  .page-khuyen-mai__cta-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
  }

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

  .page-khuyen-mai__promo-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-khuyen-mai__logo-grid-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  .page-khuyen-mai__logo-grid-section .page-khuyen-mai__logo-image:nth-child(5),
  .page-khuyen-mai__logo-grid-section .page-khuyen-mai__logo-image:nth-child(6) {
    grid-column: auto;
  }

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

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

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