/* style/khuyen-mai.css */
:root {
  --primary-color: #1A202C; /* Dark Grey/Blue */
  --secondary-color: #FFD700; /* Gold/Yellow */
  --text-color-light: #f0f0f0;
  --text-color-dark: #333333;
  --background-dark: #12161e;
  --background-light: #ffffff;
  --card-background: #2a3342;
  --border-color: #444a57;
}

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

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

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

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-khuyen-mai__section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-khuyen-mai__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-khuyen-mai__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  overflow: hidden;
}

.page-khuyen-mai__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-color-light);
}

.page-khuyen-mai__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-khuyen-mai__hero-description {
  font-size: 1.3em;
  color: var(--text-color-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Promo Grid */
.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: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyen-mai__promo-card-description {
  font-size: 1em;
  color: var(--text-color-light);
  margin-bottom: 25px;
}

.page-khuyen-mai__promo-card-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-khuyen-mai__promo-card-description a:hover {
  color: #e6c200;
}

.page-khuyen-mai__promo-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-khuyen-mai__promo-card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Lists */
.page-khuyen-mai__list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-khuyen-mai__list li {
  background-color: var(--card-background);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-color-light);
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__list li strong {
  color: var(--secondary-color);
}

.page-khuyen-mai__steps {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 30px auto;
  counter-reset: step-counter;
}

.page-khuyen-mai__steps li {
  background-color: var(--card-background);
  margin-bottom: 15px;
  padding: 20px 20px 20px 60px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-color-light);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-khuyen-mai__steps li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-khuyen-mai__steps li a:hover {
  color: #e6c200;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: var(--text-color-light);
}

.faq-question:hover {
  background: #2a3342;
  color: var(--secondary-color);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--text-color-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--card-background);
  border-radius: 0 0 8px 8px;
  color: var(--text-color-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 15px 25px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-color-light);
}

.faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-title {
    font-size: 3em;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1.2em;
  }
  .page-khuyen-mai__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai__section {
    padding: 40px 0;
  }
  .page-khuyen-mai__hero-section {
    padding: 60px 15px;
  }
  .page-khuyen-mai__hero-title {
    font-size: 2.2em;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1em;
  }
  .page-khuyen-mai__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-khuyen-mai__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__section p {
    font-size: 0.95em;
  }
  .page-khuyen-mai__promo-card {
    padding: 20px;
  }
  .page-khuyen-mai__promo-card-title {
    font-size: 1.5em;
  }
  .page-khuyen-mai__promo-card-image {
    height: 180px;
  }
  .page-khuyen-mai__list li, .page-khuyen-mai__steps li {
    font-size: 0.95em;
    padding: 15px 15px 15px 50px;
  }
  .page-khuyen-mai__steps li::before {
    width: 25px;
    height: 25px;
    font-size: 1em;
    left: 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai__hero-title {
    font-size: 1.8em;
  }
  .page-khuyen-mai__hero-description {
    font-size: 0.9em;
  }
  .page-khuyen-mai__section-title {
    font-size: 1.5em;
  }
  .page-khuyen-mai__promo-card-title {
    font-size: 1.3em;
  }
  .page-khuyen-mai__promo-card-image {
    height: 150px;
  }
  .faq-question h3 {
    font-size: 0.9em;
  }
}