/* style/khuyen-mai.css */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Body background color */
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
  line-height: 1.6;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand color gradient */
  color: #ffffff;
}

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

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

.page-khuyen-mai__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-khuyen-mai__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

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

.page-khuyen-mai__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-large {
  padding: 18px 36px;
  font-size: 1.2rem;
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

.page-khuyen-mai__intro-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__feature-item {
  flex: 1 1 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-khuyen-mai__feature-item:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #E53935;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure circular shape */
  display: block;
}

.page-khuyen-mai__feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-khuyen-mai__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

/* Promo Highlights Section */
.page-khuyen-mai__promo-highlights-section {
  padding: 80px 0;
  background: #E53935;
  color: #ffffff;
}

.page-khuyen-mai__promo-highlights-section .page-khuyen-mai__section-title,
.page-khuyen-mai__promo-highlights-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

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

.page-khuyen-mai__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-khuyen-mai__promo-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
  line-height: 1.3;
}

.page-khuyen-mai__promo-card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
  padding: 80px 0;
  background-color: #F5F7FA;
  color: #333333;
}

.page-khuyen-mai__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-khuyen-mai__guide-step-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-khuyen-mai__guide-step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__guide-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #E53935;
}

.page-khuyen-mai__guide-step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

.page-khuyen-mai__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-khuyen-mai__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #E0E0E0;
  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;
  font-size: 1.2rem;
  font-weight: 600;
  color: #E53935;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* For details/summary default marker */
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #333333;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg);
}

.page-khuyen-mai__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  background-color: #f9f9f9;
}

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
  text-align: center;
}

.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__section-title,
.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-khuyen-mai__hero-content {
    order: 2;
  }

  .page-khuyen-mai__hero-image {
    order: 1;
    margin-bottom: 30px;
  }

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

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

  .page-khuyen-mai__intro-features {
    gap: 20px;
  }

  .page-khuyen-mai__feature-item {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }

  .page-khuyen-mai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-khuyen-mai__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .page-khuyen-mai__promo-card-image {
    height: 200px;
  }
}

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

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

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

  .page-khuyen-mai__hero-image {
    min-width: unset;
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  /* Buttons - Mobile forced styles */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__hero-cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Intro Section */
  .page-khuyen-mai__intro-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__feature-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px 15px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    margin-bottom: 15px;
  }

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

  .page-khuyen-mai__feature-text {
    font-size: 0.95rem;
  }

  /* Promo Highlights Section */
  .page-khuyen-mai__promo-highlights-section {
    padding: 60px 0;
  }

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

  .page-khuyen-mai__promo-card-image {
    height: 180px;
  }

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

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

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

  /* Guide Section */
  .page-khuyen-mai__guide-section {
    padding: 60px 0;
  }

  .page-khuyen-mai__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }

  .page-khuyen-mai__guide-step-item {
    padding: 50px 20px 30px;
  }

  .page-khuyen-mai__guide-step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: -20px;
  }

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

  .page-khuyen-mai__guide-step-text {
    font-size: 0.95rem;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-section {
    padding: 60px 0;
  }

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

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

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

  .page-khuyen-mai__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* CTA Bottom Section */
  .page-khuyen-mai__cta-bottom-section {
    padding: 60px 0;
  }

  .page-khuyen-mai__btn-large {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

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

  .page-khuyen-mai__content-container,
  .page-khuyen-mai__hero-container,
  .page-khuyen-mai__intro-section,
  .page-khuyen-mai__promo-highlights-section,
  .page-khuyen-mai__guide-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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