/* style/khuyen-mai.css */

:root {
  --page-khuyen-mai-primary-color: #26A9E0;
  --page-khuyen-mai-secondary-color: #FFFFFF;
  --page-khuyen-mai-text-dark: #333333;
  --page-khuyen-mai-text-light: #FFFFFF;
  --page-khuyen-mai-login-color: #EA7C07;
}

.page-khuyen-mai {
  color: var(--page-khuyen-mai-text-dark); /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuyen-mai__dark-section {
  background-color: var(--page-khuyen-mai-primary-color);
  color: var(--page-khuyen-mai-text-light);
}

.page-khuyen-mai__light-bg {
  background-color: var(--page-khuyen-mai-secondary-color);
  color: var(--page-khuyen-mai-text-dark);
}

/* Hero/Title Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  min-height: 450px;
}

.page-khuyen-mai__hero-section .page-khuyen-mai__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-khuyen-mai__hero-content {
  flex: 1 1 50%;
  padding-right: 30px;
  box-sizing: border-box;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--page-khuyen-mai-text-light);
}

.page-khuyen-mai__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--page-khuyen-mai-text-light);
}

.page-khuyen-mai__hero-image-wrapper {
  flex: 1 1 40%;
  text-align: center;
}

.page-khuyen-mai__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

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

.page-khuyen-mai__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

.page-khuyen-mai__btn-primary:hover {
  background-color: darken(var(--page-khuyen-mai-secondary-color), 5%);
  color: var(--page-khuyen-mai-primary-color);
}

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

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

.page-khuyen-mai__btn-text {
  color: var(--page-khuyen-mai-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-khuyen-mai__btn-text:hover {
  color: darken(var(--page-khuyen-mai-primary-color), 10%);
}

/* General Section Styling */
.page-khuyen-mai__promo-list-section,
.page-khuyen-mai__guide-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__cta-bottom-section {
  padding: 60px 0;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-khuyen-mai__dark-section .page-khuyen-mai__section-title,
.page-khuyen-mai__dark-section .page-khuyen-mai__section-description {
  color: var(--page-khuyen-mai-text-light);
}

.page-khuyen-mai__light-bg .page-khuyen-mai__section-title,
.page-khuyen-mai__light-bg .page-khuyen-mai__section-description {
  color: var(--page-khuyen-mai-text-dark);
}

.page-khuyen-mai__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Promo List Grid */
.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-secondary-color);
  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: 220px;
  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;
  margin-bottom: 10px;
  color: var(--page-khuyen-mai-primary-color);
  font-weight: bold;
}

.page-khuyen-mai__promo-card-text {
  font-size: 1rem;
  color: var(--page-khuyen-mai-text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-khuyen-mai__guide-step {
  background-color: var(--page-khuyen-mai-secondary-color);
  color: var(--page-khuyen-mai-text-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__guide-step .page-khuyen-mai__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: var(--page-khuyen-mai-primary-color);
  color: var(--page-khuyen-mai-text-light);
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

.page-khuyen-mai__guide-step .page-khuyen-mai__step-text {
  font-size: 1rem;
  color: var(--page-khuyen-mai-text-dark);
}

/* Terms Section */
.page-khuyen-mai__terms-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--page-khuyen-mai-secondary-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai__terms-subtitle {
  font-size: 1.5rem;
  color: var(--page-khuyen-mai-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyen-mai__terms-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-khuyen-mai-text-dark);
}

.page-khuyen-mai__terms-content ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-khuyen-mai__terms-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--page-khuyen-mai-text-dark);
}

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

.page-khuyen-mai__faq-item {
  background-color: var(--page-khuyen-mai-secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--page-khuyen-mai-primary-color);
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  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: 0 25px 20px;
  font-size: 1rem;
  color: var(--page-khuyen-mai-text-dark);
}

/* Bottom CTA Section */
.page-khuyen-mai__cta-bottom-section {
  text-align: center;
  background-color: var(--page-khuyen-mai-primary-color);
  color: var(--page-khuyen-mai-text-light);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-content {
    padding-right: 0;
  }
  .page-khuyen-mai__hero-section .page-khuyen-mai__container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-khuyen-mai__hero-image-wrapper {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Ensures small top padding */
    padding-bottom: 40px;
  }
  .page-khuyen-mai__main-title {
    font-size: 2rem;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1rem;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .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__promo-list-section,
  .page-khuyen-mai__guide-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-bottom-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__section-title {
    font-size: 1.8rem;
  }
  .page-khuyen-mai__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai__promo-card-image {
    height: 180px;
  }
  .page-khuyen-mai__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai__terms-content {
    padding: 30px 15px;
  }
  .page-khuyen-mai__terms-subtitle {
    font-size: 1.3rem;
  }
  .page-khuyen-mai__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .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;
  }
  .page-khuyen-mai__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-khuyen-mai__cta-buttons--center {
    flex-direction: column;
  }
}