/* style/khuyen-mai.css */

/* Variables from custom color scheme */
:root {
  --page-khuyen-mai-primary-color: #FF8C1A;
  --page-khuyen-mai-secondary-color: #FFA53A;
  --page-khuyen-mai-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --page-khuyen-mai-card-bg: #17191F;
  --page-khuyen-mai-bg: #0D0E12;
  --page-khuyen-mai-text-main: #FFF3E6;
  --page-khuyen-mai-border-color: #A84F0C;
  --page-khuyen-mai-glow-color: #FFB04D;
  --page-khuyen-mai-deep-orange: #D96800;
}

.page-khuyen-mai {
  color: var(--page-khuyen-mai-text-main); /* Text color for dark body background */
  background-color: var(--page-khuyen-mai-bg);
}

.page-khuyen-mai h1,
.page-khuyen-mai h2,
.page-khuyen-mai h3 {
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__section {
  padding: 60px 0;
  background-color: var(--page-khuyen-mai-bg);
}

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

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

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

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

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

.page-khuyen-mai__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.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: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-khuyen-mai__btn-primary {
  background: var(--page-khuyen-mai-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: transparent;
  color: var(--page-khuyen-mai-primary-color);
  border: 2px solid var(--page-khuyen-mai-primary-color);
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--page-khuyen-mai-primary-color);
  color: #ffffff;
}

/* Section Titles and Descriptions */
.page-khuyen-mai__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--page-khuyen-mai-primary-color);
}

.page-khuyen-mai__section-description {
  font-size: 1.125rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
  color: var(--page-khuyen-mai-text-main);
}

/* Promo Details Section */
.page-khuyen-mai__promo-details {
  background-color: var(--page-khuyen-mai-bg);
}

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

.page-khuyen-mai__promo-card {
  background-color: var(--page-khuyen-mai-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-khuyen-mai-border-color);
}

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

.page-khuyen-mai__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

.page-khuyen-mai__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-khuyen-mai__guide-steps {
  flex: 1 1 50%;
  min-width: 300px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-khuyen-mai__guide-step {
  background-color: var(--page-khuyen-mai-card-bg);
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid var(--page-khuyen-mai-primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-khuyen-mai__step-number {
  position: absolute;
  left: 20px;
  top: 25px;
  width: 35px;
  height: 35px;
  background: var(--page-khuyen-mai-primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

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

.page-khuyen-mai__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-khuyen-mai-text-main);
}

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

.page-khuyen-mai__guide-illustration {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-khuyen-mai-secondary-color);
  list-style: none; /* For details/summary */
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--page-khuyen-mai-primary-color);
}

.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;
  line-height: 1.6;
  color: var(--page-khuyen-mai-text-main);
}

/* Bottom CTA Section */
.page-khuyen-mai__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background: var(--page-khuyen-mai-bg);
}

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

.page-khuyen-mai__cta-bottom-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--page-khuyen-mai-primary-color);
}

.page-khuyen-mai__cta-bottom-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--page-khuyen-mai-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-container {
    padding: 30px 16px;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  }

  .page-khuyen-mai__promo-grid {
    gap: 20px;
  }

  .page-khuyen-mai__promo-card {
    padding: 25px;
  }

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

  .page-khuyen-mai__guide-content {
    gap: 30px;
  }

  .page-khuyen-mai__guide-steps {
    gap: 20px;
  }

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

  .page-khuyen-mai__faq-question {
    font-size: 1.05rem;
    padding: 18px 22px;
  }

  .page-khuyen-mai__faq-answer {
    padding: 0 22px 18px;
  }

  .page-khuyen-mai__cta-bottom-title {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  }
}

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

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

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

  .page-khuyen-mai__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }

  .page-khuyen-mai__hero-cta-buttons {
    flex-direction: column !important;
    align-items: center;
    gap: 10px !important;
  }

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

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

  .page-khuyen-mai__container {
    padding: 0 15px !important;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    margin-bottom: 15px !important;
  }

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

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

  .page-khuyen-mai__promo-card {
    padding: 20px !important;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.2rem !important;
  }

  .page-khuyen-mai__card-text {
    font-size: 0.9rem !important;
  }

  .page-khuyen-mai__guide-content {
    flex-direction: column-reverse;
    gap: 30px !important;
  }

  .page-khuyen-mai__guide-steps {
    gap: 15px !important;
  }

  .page-khuyen-mai__guide-step {
    padding: 20px 20px 20px 60px !important;
  }

  .page-khuyen-mai__step-number {
    left: 15px !important;
    top: 20px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.1rem !important;
  }

  .page-khuyen-mai__step-text {
    font-size: 0.9rem !important;
  }

  .page-khuyen-mai__guide-image {
    width: 100% !important;
  }

  .page-khuyen-mai__faq-item {
    margin-bottom: 10px !important;
  }

  .page-khuyen-mai__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }

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

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

  .page-khuyen-mai__cta-bottom {
    padding: 60px 0 !important;
  }

  .page-khuyen-mai__cta-bottom-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
  }

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

  /* General Image adaptation */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* General container adaptation */
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__guide-step,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by container */
    /* padding-right: 15px; */ /* Handled by container */
  }
  
  /* No icon-box-media on this page, but if it were, it would need its own rule to maintain square aspect ratio */
  /* .page-khuyen-mai__icon-box-media { width:200px !important; height:200px !important; } */
}

@media (max-width: 480px) {
  .page-khuyen-mai__hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem) !important;
  }
  .page-khuyen-mai__section-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem) !important;
  }
  .page-khuyen-mai__cta-bottom-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem) !important;
  }
  .page-khuyen-mai__hero-cta-buttons {
    flex-direction: column;
  }
}