/* Khuyến Mãi Page Styles - BEM */
.page-khuyen-mai {
  color: #F3F8FF;
  background-color: #08162B;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px;
  padding-bottom: 20px;
  background: linear-gradient(135deg, #08162B 0%, #10233F 50%, #113B7A 100%);
}

.page-khuyen-mai__hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: auto;
  max-width: 1020px;
  aspect-ratio: 17/5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(79, 168, 255, 0.15);
  display: block;
}

.page-khuyen-mai__hero-content {
  text-align: center;
  padding: 0 20px;
  margin-top: 10px;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  color: #F3F8FF;
  max-width: 850px;
  margin: 0 auto 12px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-khuyen-mai__hero-description {
  font-size: 1rem;
  font-weight: 400;
  color: #AFC4E8;
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
}

/* Promo Section */
.page-khuyen-mai__promo-section {
  padding: 40px 20px;
  background-color: #08162B;
}

.page-khuyen-mai__promo-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #F3F8FF;
  text-align: center;
  margin: 0 0 32px;
  position: relative;
  padding-bottom: 12px;
}

.page-khuyen-mai__promo-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #F2C14E, #1D5FD1);
  border-radius: 4px;
  margin: 12px auto 0;
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.6);
}

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

.page-khuyen-mai__promo-card {
  background-color: #10233F;
  border-radius: 16px;
  border: 1px solid #244D84;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(79, 168, 255, 0.2);
}

.page-khuyen-mai__promo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #244D84;
}

.page-khuyen-mai__promo-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F3F8FF;
  margin: 0 0 12px;
}

.page-khuyen-mai__promo-card-text {
  font-size: 0.92rem;
  color: #AFC4E8;
  margin: 0 0 18px;
  line-height: 1.6;
}

.page-khuyen-mai__promo-cta {
  display: inline-block;
  width: fit-content;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promo-cta:hover {
  background: linear-gradient(180deg, #F2C14E 0%, #F2C14E 100%);
  color: #08162B;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Event Section */
.page-khuyen-mai__event-section {
  padding: 50px 20px;
  background: linear-gradient(180deg, #08162B 0%, #10233F 100%);
  border-top: 1px solid #1B3357;
  border-bottom: 1px solid #1B3357;
}

.page-khuyen-mai__event-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #F3F8FF;
  text-align: center;
  margin: 0 0 32px;
  position: relative;
  padding-bottom: 12px;
}

.page-khuyen-mai__event-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #F2C14E, #1D5FD1);
  border-radius: 4px;
  margin: 12px auto 0;
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.6);
}

.page-khuyen-mai__event-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.page-khuyen-mai__event-details {
  background-color: #10233F;
  border: 1px solid #244D84;
  border-radius: 16px;
  padding: 24px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-khuyen-mai__event-details img {
  width: 100%;
  height: auto;
  max-width: 800px;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.page-khuyen-mai__event-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #F3F8FF;
  margin: 0 0 16px;
}

.page-khuyen-mai__event-description {
  font-size: 0.95rem;
  color: #AFC4E8;
  margin: 0 0 24px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__event-cta {
  display: inline-block;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__event-cta:hover {
  background: linear-gradient(180deg, #F2C14E 0%, #F2C14E 100%);
  color: #08162B;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* How Section */
.page-khuyen-mai__how-section {
  padding: 50px 20px;
  background-color: #08162B;
}

.page-khuyen-mai__how-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #F3F8FF;
  text-align: center;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 12px;
}

.page-khuyen-mai__how-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #F2C14E, #1D5FD1);
  border-radius: 4px;
  margin: 12px auto 0;
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.6);
}

.page-khuyen-mai__how-intro {
  text-align: center;
  color: #AFC4E8;
  font-size: 0.95rem;
  max-width: 700px;
  margin: 0 auto 32px;
}

.page-khuyen-mai__how-steps {
  list-style: none;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.page-khuyen-mai__how-step {
  counter-increment: step-counter;
  position: relative;
  padding: 16px 20px 16px 65px;
  background-color: #10233F;
  border: 1px solid #244D84;
  border-radius: 12px;
  color: #AFC4E8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-khuyen-mai__how-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #F2C14E 0%, #D1A932 100%);
  color: #08162B;
  font-weight: 700;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__how-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-khuyen-mai__how-cta {
  display: inline-block;
  border: 1px solid #244D84;
  color: #F3F8FF;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.page-khuyen-mai__how-cta:hover {
  background: rgba(36, 77, 132, 0.3);
  border-color: #4FA8FF;
}

.page-khuyen-mai__how-cta--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  border-color: transparent;
}

.page-khuyen-mai__how-cta--primary:hover {
  background: linear-gradient(180deg, #F2C14E 0%, #F2C14E 100%);
  color: #08162B;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 50px 20px;
  background: linear-gradient(180deg, #08162B 0%, #10233F 100%);
  border-top: 1px solid #1B3357;
}

.page-khuyen-mai__faq-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #F3F8FF;
  text-align: center;
  margin: 0 0 32px;
  position: relative;
  padding-bottom: 12px;
}

.page-khuyen-mai__faq-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #F2C14E, #1D5FD1);
  border-radius: 4px;
  margin: 12px auto 0;
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.6);
}

.page-khuyen-mai__faq-item {
  background-color: #10233F;
  border: 1px solid #244D84;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #F3F8FF;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  gap: 12px;
}

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

.page-khuyen-mai__faq-question:hover {
  color: #F2C14E;
}

.page-khuyen-mai__faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #F3F8FF;
  flex-shrink: 0;
}

.page-khuyen-mai__faq-answer {
  margin: 12px 0 0;
  color: #AFC4E8;
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid #1B3357;
  padding-top: 12px;
}

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

  .page-khuyen-mai__hero-image img {
    aspect-ratio: 2/1;
    border-radius: 12px;
  }

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

  .page-khuyen-mai__hero-description {
    font-size: 0.88rem;
  }

  .page-khuyen-mai__promo-section {
    padding: 32px 14px;
  }

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

  .page-khuyen-mai__promo-card-title {
    font-size: 1.05rem;
  }

  .page-khuyen-mai__promo-card-text {
    font-size: 0.88rem;
  }

  .page-khuyen-mai__promo-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 16px;
  }

  .page-khuyen-mai__event-section {
    padding: 32px 14px;
  }

  .page-khuyen-mai__event-details {
    padding: 16px;
  }

  .page-khuyen-mai__event-title {
    font-size: 1.15rem;
  }

  .page-khuyen-mai__event-description {
    font-size: 0.88rem;
  }

  .page-khuyen-mai__event-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 16px;
  }

  .page-khuyen-mai__how-section {
    padding: 32px 14px;
  }

  .page-khuyen-mai__how-step {
    padding: 14px 14px 14px 55px;
    font-size: 0.88rem;
  }

  .page-khuyen-mai__how-step::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .page-khuyen-mai__how-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-khuyen-mai__how-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 16px;
  }

  .page-khuyen-mai__faq-section {
    padding: 32px 14px;
  }

  .page-khuyen-mai__faq-question {
    font-size: 0.88rem;
  }

  .page-khuyen-mai__faq-answer {
    font-size: 0.85rem;
  }

  /* Mobile image overflow protection */
  .page-khuyen-mai img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ==================== 1024px ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-khuyen-mai__promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-khuyen-mai__promo-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}