/* Base styles for the page-khuyen-mai */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color */
  background-color: #0A0A0A; /* Background color */
  padding-top: 10px; /* Small top padding for internal pages, assuming body padding from shared.css */
}

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

.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #FFD36B1A 0%, #F2C14E1A 100%); /* Light gradient overlay for visual depth */
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-khuyen-mai__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 10, 0.8); /* Semi-transparent background for text readability */
  margin-top: -100px; /* Pull content slightly over the image */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #3A2A12;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255,211,107,0.5);
}

.page-khuyen-mai__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #0A0A0A; /* Dark text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(242,193,78,0.4);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,193,78,0.6);
  opacity: 0.9;
}

.page-khuyen-mai__btn-secondary {
  background: #111111; /* Card BG color */
  color: #FFD36B; /* Glow color */
  border: 2px solid #FFD36B;
  box-shadow: 0 4px 15px rgba(255,211,107,0.2);
}

.page-khuyen-mai__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,211,107,0.4);
  background: #FFD36B;
  color: #0A0A0A;
}

.page-khuyen-mai__section {
  padding: 40px 0;
  margin-bottom: 30px;
  background-color: #0A0A0A;
}

.page-khuyen-mai__section-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242,193,78,0.3);
}

.page-khuyen-mai__text-block {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-khuyen-mai__promo-card,
.page-khuyen-mai__step-item,
.page-khuyen-mai__why-card {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF6D6;
}

.page-khuyen-mai__promo-card:hover,
.page-khuyen-mai__step-item:hover,
.page-khuyen-mai__why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__card-image,
.page-khuyen-mai__step-icon {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%;
  min-height: 200px; /* Minimum size requirement */
}

.page-khuyen-mai__step-icon {
  max-width: 150px;
  min-height: 150px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #F2C14E;
  box-shadow: 0 0 15px rgba(242,193,78,0.5);
}

.page-khuyen-mai__card-title,
.page-khuyen-mai__step-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyen-mai__card-text,
.page-khuyen-mai__step-text {
  font-size: 0.95rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-primary,
.page-khuyen-mai__step-item .page-khuyen-mai__btn-primary {
  margin-top: auto;
}

.page-khuyen-mai__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-khuyen-mai__list-item {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-khuyen-mai__list-title {
  font-size: 1.3rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuyen-mai__list-item p {
  font-size: 0.95rem;
  color: #FFF6D6;
}

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

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG color */
  color: #FFF6D6;
}

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Main color */
}

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter than card BG */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

.page-khuyen-mai__faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: #FFF6D6;
}

.page-khuyen-mai__cta-buttons--bottom {
  margin-top: 50px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-khuyen-mai {
    padding-top: 10px; /* Small top padding */
  }

  .page-khuyen-mai__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__hero-content {
    padding: 30px 15px;
    margin-top: -60px; /* Adjust overlap for mobile */
  }

  .page-khuyen-mai__main-title {
    font-size: 2rem;
  }

  .page-khuyen-mai__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-khuyen-mai__section {
    padding: 30px 0;
    margin-bottom: 20px;
  }

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

  .page-khuyen-mai__text-block {
    font-size: 0.9rem;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__card-image,
  .page-khuyen-mai__step-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__step-item,
  .page-khuyen-mai__why-card {
    padding: 20px;
  }

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

  .page-khuyen-mai__list-item {
    padding: 20px;
    margin-bottom: 15px;
  }

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

  details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question { padding: 15px; }
  .page-khuyen-mai__faq-qtext { font-size: 1rem; }
  details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer { padding: 0 15px 15px; }

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

  .page-khuyen-mai__cta-buttons--bottom {
    margin-top: 30px;
  }
}