/* style/khuyen-mai.css */
:root {
  --page-khuyen-mai--primary-color: #26A9E0;
  --page-khuyen-mai--secondary-color: #FFFFFF;
  --page-khuyen-mai--text-color: #333333;
  --page-khuyen-mai--dark-text-color: #000000;
  --page-khuyen-mai--light-text-color: #ffffff;
  --page-khuyen-mai--background-color: #FFFFFF;
  --page-khuyen-mai--login-button-color: #EA7C07;
}

.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-khuyen-mai--text-color);
  background-color: var(--page-khuyen-mai--background-color);
}

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

.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: var(--page-khuyen-mai--primary-color);
  color: var(--page-khuyen-mai--light-text-color);
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-khuyen-mai__hero-image-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-khuyen-mai__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

.page-khuyen-mai__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--page-khuyen-mai--secondary-color);
}

.page-khuyen-mai__hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-khuyen-mai__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-khuyen-mai__btn--primary {
  background-color: var(--page-khuyen-mai--login-button-color); /* Login color for primary CTA */
  color: var(--page-khuyen-mai--light-text-color);
  border: 2px solid var(--page-khuyen-mai--login-button-color);
}

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

.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--small {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 6px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__section {
  padding: 60px 0;
}

.page-khuyen-mai__section:nth-of-type(even) {
  background-color: #f8f8f8;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--page-khuyen-mai--dark-text-color);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-khuyen-mai__highlight {
  color: var(--page-khuyen-mai--primary-color);
  font-weight: 600;
}

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

.page-khuyen-mai__promo-card {
  background-color: var(--page-khuyen-mai--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-khuyen-mai--dark-text-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-khuyen-mai__figure {
  margin: 0;
  width: 100%;
  margin-bottom: 15px;
}

.page-khuyen-mai__figure--small {
  max-width: 100%;
}

.page-khuyen-mai__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-khuyen-mai__image--card {
  max-height: 200px;
}

.page-khuyen-mai__figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
  text-align: center;
}

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

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

.page-khuyen-mai__info-card {
  background-color: var(--page-khuyen-mai--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  border-left: 5px solid var(--page-khuyen-mai--primary-color);
}

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

.page-khuyen-mai__step-item {
  background-color: var(--page-khuyen-mai--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--page-khuyen-mai--primary-color);
  color: var(--page-khuyen-mai--light-text-color);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.page-khuyen-mai__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-khuyen-mai--dark-text-color);
  margin-bottom: 15px;
}

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

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

.page-khuyen-mai__list-item {
  background-color: var(--page-khuyen-mai--secondary-color);
  border-left: 4px solid var(--page-khuyen-mai--primary-color);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  color: var(--page-khuyen-mai--text-color);
  text-align: justify;
}

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

.page-khuyen-mai__faq-item {
  background-color: var(--page-khuyen-mai--secondary-color);
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-khuyen-mai--dark-text-color);
  padding: 18px 25px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-khuyen-mai__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--page-khuyen-mai--primary-color);
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item.active .page-khuyen-mai__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: var(--page-khuyen-mai--secondary-color);
}

.page-khuyen-mai__faq-item.active .page-khuyen-mai__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
  padding-bottom: 25px;
}

.page-khuyen-mai__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--page-khuyen-mai--text-color);
  text-align: justify;
}

.page-khuyen-mai__conclusion-section {
  text-align: center;
  background-color: var(--page-khuyen-mai--primary-color);
  color: var(--page-khuyen-mai--light-text-color);
  padding: 80px 0;
}

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

.page-khuyen-mai__conclusion-section .page-khuyen-mai__text-block {
  color: var(--page-khuyen-mai--secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
}

.page-khuyen-mai__conclusion-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-khuyen-mai__conclusion-cta-group .page-khuyen-mai__btn--primary {
  background-color: var(--page-khuyen-mai--login-button-color);
  border-color: var(--page-khuyen-mai--login-button-color);
  color: var(--page-khuyen-mai--light-text-color);
}

.page-khuyen-mai__conclusion-cta-group .page-khuyen-mai__btn--primary:hover {
  background-color: darken(var(--page-khuyen-mai--login-button-color), 10%);
  border-color: darken(var(--page-khuyen-mai--login-button-color), 10%);
}

.page-khuyen-mai__conclusion-cta-group .page-khuyen-mai__btn--secondary {
  background-color: var(--page-khuyen-mai--secondary-color);
  border-color: var(--page-khuyen-mai--secondary-color);
  color: var(--page-khuyen-mai--primary-color);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-khuyen-mai__hero-title {
    font-size: 2.2rem;
  }

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

  .page-khuyen-mai__hero-cta-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-khuyen-mai__btn,
  .page-khuyen-mai__btn--small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__section {
    padding: 40px 0;
  }

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

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

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

  .page-khuyen-mai__promo-card-grid,
  .page-khuyen-mai__info-card-grid,
  .page-khuyen-mai__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-khuyen-mai__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .page-khuyen-mai__list-item {
    font-size: 1rem;
    padding: 12px 15px;
  }

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

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

  .page-khuyen-mai__faq-item.active .page-khuyen-mai__faq-answer {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .page-khuyen-mai__faq-answer p {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__conclusion-section {
    padding: 50px 0;
  }

  .page-khuyen-mai__conclusion-section .page-khuyen-mai__text-block {
    font-size: 1rem;
  }

  .page-khuyen-mai__conclusion-cta-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  /* Universal image and figure rules for mobile */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuyen-mai__figure,
  .page-khuyen-mai__promo-card-grid,
  .page-khuyen-mai__info-card-grid,
  .page-khuyen-mai__step-by-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-khuyen-mai__promo-card .page-khuyen-mai__btn--small,
  .page-khuyen-mai__step-item .page-khuyen-mai__btn--small {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-khuyen-mai__promo-card {
    align-items: center; /* Center content in card for mobile */
    text-align: center;
  }

  .page-khuyen-mai__card-text,
  .page-khuyen-mai__step-text {
    text-align: center;
  }
}