/* style/khuyen-mai.css */

:root {
  --page-khuyen-mai-primary-color: #113B7A;
  --page-khuyen-mai-secondary-color: #1D5FD1;
  --page-khuyen-mai-text-main: #F3F8FF;
  --page-khuyen-mai-text-secondary: #AFC4E8;
  --page-khuyen-mai-card-bg: #10233F;
  --page-khuyen-mai-border-color: #244D84;
  --page-khuyen-mai-glow-color: #4FA8FF;
  --page-khuyen-mai-gold-color: #F2C14E;
  --page-khuyen-mai-divider-color: #1B3357;
  --page-khuyen-mai-deep-navy: #08162B;
  --page-khuyen-mai-btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-khuyen-mai {
  color: var(--page-khuyen-mai-text-main); /* Default text color for dark body background */
  background-color: var(--page-khuyen-mai-deep-navy); /* From shared.css body background */
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--page-khuyen-mai-text-secondary);
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding as body has --header-offset */
  padding-bottom: 60px;
  background-color: var(--page-khuyen-mai-deep-navy);
  color: var(--page-khuyen-mai-text-main);
}

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

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

.page-khuyen-mai__hero-title {
  font-size: 3.2em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-khuyen-mai-text-main);
}

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

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

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

/* Button Group */
.page-khuyen-mai__button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.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.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: var(--page-khuyen-mai-btn-gradient);
  color: var(--page-khuyen-mai-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-khuyen-mai__btn-secondary:hover {
  background: var(--page-khuyen-mai-secondary-color);
  color: var(--page-khuyen-mai-text-main);
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-small {
  padding: 10px 20px;
  font-size: 1em;
}

/* Promo Section */
.page-khuyen-mai__promo-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--page-khuyen-mai-deep-navy);
  color: var(--page-khuyen-mai-text-main);
}

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

.page-khuyen-mai__promo-card {
  background-color: var(--page-khuyen-mai-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-khuyen-mai-text-main);
  border: 1px solid var(--page-khuyen-mai-border-color);
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  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.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-khuyen-mai-gold-color);
}

.page-khuyen-mai__promo-card-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--page-khuyen-mai-text-secondary);
  flex-grow: 1;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--page-khuyen-mai-primary-color);
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__why-choose-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-khuyen-mai__why-choose-item {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--page-khuyen-mai-border-color);
}

.page-khuyen-mai__why-choose-item-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-khuyen-mai-gold-color);
}

.page-khuyen-mai__why-choose-item-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--page-khuyen-mai-text-secondary);
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--page-khuyen-mai-deep-navy);
  color: var(--page-khuyen-mai-text-main);
}

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-khuyen-mai-card-bg);
  color: var(--page-khuyen-mai-text-main);
  position: relative;
  list-style: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-khuyen-mai-gold-color);
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-khuyen-mai-text-secondary);
}

/* CTA Section */
.page-khuyen-mai__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--page-khuyen-mai-secondary-color);
  text-align: center;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__cta-container .page-khuyen-mai__button-group {
  justify-content: center;
}

/* Text Color Overrides */
.page-khuyen-mai__text-main {
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__text-secondary {
  color: var(--page-khuyen-mai-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-title {
    font-size: 2.8em;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1.1em;
  }
  .page-khuyen-mai__section-title,
  .page-khuyen-mai__cta-title {
    font-size: 2em;
  }
  .page-khuyen-mai__promo-card-title {
    font-size: 1.3em;
  }
  .page-khuyen-mai__why-choose-item-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 16px; /* Base font size for mobile */
    line-height: 1.6;
  }

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

  /* General container responsiveness */
  .page-khuyen-mai__content-area,
  .page-khuyen-mai__hero-container,
  .page-khuyen-mai__why-choose-container,
  .page-khuyen-mai__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding as body has --header-offset */
    padding-bottom: 40px !important;
  }
  .page-khuyen-mai__hero-container {
    flex-direction: column; /* Stack content and image */
    gap: 30px;
  }
  .page-khuyen-mai__hero-content {
    order: 2; /* Content after image for better flow */
    text-align: center;
  }
  .page-khuyen-mai__hero-image {
    order: 1; /* Image first */
  }
  .page-khuyen-mai__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Button Group (General) */
  .page-khuyen-mai__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    align-items: center;
  }

  /* Buttons (General) */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Promo Cards */
  .page-khuyen-mai__promo-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
  }
  .page-khuyen-mai__promo-card-image {
    height: 180px; /* Adjust image height for mobile cards */
  }
  .page-khuyen-mai__promo-card-content {
    padding: 20px;
  }
  .page-khuyen-mai__promo-card-title {
    font-size: 1.2em;
  }
  .page-khuyen-mai__promo-card-text {
    font-size: 0.9em;
  }

  /* Why Choose Section */
  .page-khuyen-mai__why-choose-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-khuyen-mai__why-choose-list {
    grid-template-columns: 1fr; /* Single column for list items */
    gap: 20px;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* CTA Section */
  .page-khuyen-mai__cta-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .page-khuyen-mai__cta-title {
    font-size: 2em;
  }
  .page-khuyen-mai__cta-description {
    font-size: 1em;
  }
}