/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  background-color: var(--deep-navy); /* #08162B (dark) */
  color: var(--text-main); /* #F3F8FF (light) */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuyen-mai__section-title {
  color: var(--gold); /* #F2C14E */
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px var(--glow); /* #4FA8FF */
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-khuyen-mai__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but content is below */
  position: relative;
  z-index: 1;
  background: rgba(16, 35, 63, 0.9); /* Card BG with opacity */
  border-radius: 15px;
  border: 1px solid var(--border); /* #244D84 */
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 */
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--glow);
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 30px;
}

.page-khuyen-mai__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff; /* White text for contrast */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-khuyen-mai__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Promotions Overview Section */
.page-khuyen-mai__promotions-overview {
  padding: 60px 0;
}

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

.page-khuyen-mai__category-card {
  background-color: var(--card-bg); /* #10233F */
  border: 1px solid var(--border); /* #244D84 */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-khuyen-mai__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-khuyen-mai__category-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-khuyen-mai__category-title {
  color: var(--text-main); /* #F3F8FF */
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-khuyen-mai__category-text {
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 0.95em;
  flex-grow: 1;
}

/* Current Promotions Section */
.page-khuyen-mai__current-promotions {
  padding: 60px 0;
  background-color: #0d1a2f; /* Slightly lighter dark background */
}

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

.page-khuyen-mai__promotion-item {
  background-color: var(--card-bg); /* #10233F */
  border: 1px solid var(--border); /* #244D84 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__promotion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-khuyen-mai__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promotion-details {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-khuyen-mai__promotion-title {
  color: var(--gold); /* #F2C14E */
  font-size: 1.35em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-khuyen-mai__promotion-text {
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuyen-mai__promotion-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-khuyen-mai__promotion-features li {
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 5px;
  font-size: 0.9em;
  position: relative;
  padding-left: 20px;
}

.page-khuyen-mai__promotion-features li::before {
  content: '✔';
  color: #2B73F6; /* Blue for checkmark */
  position: absolute;
  left: 0;
  top: 0;
}

.page-khuyen-mai__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff; /* White text for contrast */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: auto; /* Push button to bottom */
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Terms & Conditions Section */
.page-khuyen-mai__terms-conditions {
  padding: 60px 0;
}

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

.page-khuyen-mai__term-item {
  background-color: var(--card-bg); /* #10233F */
  border: 1px solid var(--border); /* #244D84 */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.page-khuyen-mai__term-title {
  color: var(--text-main); /* #F3F8FF */
  font-size: 1.25em;
  margin-bottom: 10px;
}

.page-khuyen-mai__term-text {
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 0.95em;
}

.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--gold); /* #F2C14E */
  border: 2px solid var(--gold); /* #F2C14E */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 40px;
  text-align: center;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: var(--gold); /* #F2C14E */
  color: var(--deep-navy); /* #08162B */
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim {
  padding: 60px 0;
  background-color: #0d1a2f; /* Slightly lighter dark background */
}

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

.page-khuyen-mai__step-item {
  background-color: var(--card-bg); /* #10233F */
  border: 1px solid var(--border); /* #244D84 */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff; /* White text */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-khuyen-mai__step-title {
  color: var(--gold); /* #F2C14E */
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-khuyen-mai__step-text {
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 0.95em;
}

.page-khuyen-mai__mt-40 {
  margin-top: 40px;
}

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

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

.page-khuyen-mai__faq-item {
  background-color: var(--card-bg); /* #10233F */
  border: 1px solid var(--border); /* #244D84 */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-main); /* #F3F8FF */
  font-size: 1.15em;
  font-weight: bold;
  background-color: #1a2c42; /* Slightly darker card background for summary */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

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

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

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

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

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  content: '-'; /* Change to minus when open */
  transform: rotate(45deg);
}

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

/* Call to Action Bottom Section */
.page-khuyen-mai__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: var(--deep-navy); /* #08162B */
}

.page-khuyen-mai__cta-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* General image and container responsiveness for mobile */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-khuyen-mai__section,
.page-khuyen-mai__card,
.page-khuyen-mai__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 20px 30px;
  }

  .page-khuyen-mai__hero-content {
    margin-top: -80px;
    padding: 30px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-khuyen-mai__section-title {
    font-size: 2em;
  }

  .page-khuyen-mai__promotion-categories,
  .page-khuyen-mai__promotion-list,
  .page-khuyen-mai__terms-list,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
}

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

  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-khuyen-mai__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 20px;
    border-radius: 10px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em) !important;
    line-height: 1.3;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1em;
  }

  .page-khuyen-mai__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1em;
  }

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

  .page-khuyen-mai__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

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

  .page-khuyen-mai__promotion-categories,
  .page-khuyen-mai__promotion-list,
  .page-khuyen-mai__terms-list,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-khuyen-mai__category-card,
  .page-khuyen-mai__promotion-item,
  .page-khuyen-mai__term-item,
  .page-khuyen-mai__step-item {
    padding: 20px !important;
    border-radius: 10px !important;
  }

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

  .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: 12px 15px !important;
    font-size: 1em !important;
  }

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

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

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* General image and container responsiveness for mobile */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure no horizontal scroll for content areas */
  .page-khuyen-mai {
    overflow-x: hidden;
  }
}