/* style/khuyn-mi.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --bg-dark: #0A192F;
  --bg-light: #ffffff;
  --bg-accent: #1a2a47;
  --border-color: #3e4e6e;
}

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

.page-khuyn-mi .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-khuyn-mi h1, .page-khuyn-mi h2, .page-khuyn-mi h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-khuyn-mi h1 {
  font-size: 2.8em;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-khuyn-mi h2 {
  font-size: 2.2em;
  padding-top: 40px;
  padding-bottom: 20px;
  position: relative;
}

.page-khuyn-mi h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-khuyn-mi h3 {
  font-size: 1.8em;
  color: var(--text-light);
  text-align: left;
  margin-bottom: 15px;
}

.page-khuyn-mi p {
  margin-bottom: 15px;
  color: var(--text-light);
  text-align: justify;
}

.page-khuyn-mi a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-khuyn-mi a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Hero Section */
.page-khuyn-mi .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2a47 100%);
}

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

.page-khuyn-mi .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-khuyn-mi .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-khuyn-mi .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-khuyn-mi .hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-khuyn-mi .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-khuyn-mi .cta-button:hover {
  background: #ffffff;
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
}

/* General Section Styling */
.page-khuyn-mi .section-intro, .page-khuyn-mi .section-promos, .page-khuyn-mi .section-terms, .page-khuyn-mi .section-how-to, .page-khuyn-mi .section-faq, .page-khuyn-mi .section-cta-final {
  padding: 60px 0;
}

.page-khuyn-mi .section-intro {
  background-color: var(--bg-accent);
}

.page-khuyn-mi .section-intro img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi .section-promos {
  background-color: var(--bg-dark);
}

.page-khuyn-mi .promo-card {
  background-color: var(--bg-accent);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-khuyn-mi .promo-card h3 {
  margin-top: 0;
  font-size: 1.6em;
  color: var(--secondary-color);
}

.page-khuyn-mi .promo-card p {
  color: var(--text-light);
}

.page-khuyn-mi .promo-card img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .promo-button {
  font-size: 1em;
  padding: 10px 25px;
  margin-top: 15px;
  border-radius: 30px;
}

.page-khuyn-mi .section-terms {
  background-color: var(--bg-accent);
}

.page-khuyn-mi .terms-list {
  list-style: disc inside;
  margin-left: 20px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-khuyn-mi .terms-list li {
  margin-bottom: 10px;
  text-align: justify;
}

.page-khuyn-mi .section-terms img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi .section-how-to {
  background-color: var(--bg-dark);
}

.page-khuyn-mi .steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-khuyn-mi .steps-list li {
  background-color: var(--bg-accent);
  border-left: 5px solid var(--secondary-color);
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .steps-list li h3 {
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
  text-align: left;
}

.page-khuyn-mi .steps-list li p {
  color: var(--text-light);
}

/* FAQ Section */
.page-khuyn-mi .section-faq {
  background-color: var(--bg-accent);
}

.page-khuyn-mi .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-khuyn-mi .faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-khuyn-mi .faq-question:hover {
  background: #1a2a47;
}

.page-khuyn-mi .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--secondary-color);
  text-align: left;
}

.page-khuyn-mi .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-khuyn-mi .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-khuyn-mi .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #1a2a47;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-khuyn-mi .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
}

.page-khuyn-mi .faq-answer p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Final CTA Section */
.page-khuyn-mi .section-cta-final {
  background-color: var(--bg-dark);
  text-align: center;
  padding-bottom: 80px;
}

.page-khuyn-mi .section-cta-final h2 {
  color: #ffffff;
  font-size: 2.5em;
}

.page-khuyn-mi .section-cta-final p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-khuyn-mi .section-cta-final img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyn-mi h1 {
    font-size: 2.4em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.4em;
  }
  .page-khuyn-mi .hero-content p {
    font-size: 1.1em;
  }
  .page-khuyn-mi .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi h1 {
    font-size: 2em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.6em;
    padding-top: 30px;
  }
  .page-khuyn-mi h3 {
    font-size: 1.3em;
  }
  .page-khuyn-mi .hero-section {
    padding: 40px 15px;
  }
  .page-khuyn-mi .hero-image {
    margin-bottom: 20px;
  }
  .page-khuyn-mi .hero-image img, .page-khuyn-mi .section-intro img, .page-khuyn-mi .promo-card img, .page-khuyn-mi .section-terms img, .page-khuyn-mi .section-cta-final img {
    border-radius: 6px;
  }
  .page-khuyn-mi .promo-card {
    padding: 20px;
  }
  .page-khuyn-mi .section-intro, .page-khuyn-mi .section-promos, .page-khuyn-mi .section-terms, .page-khuyn-mi .section-how-to, .page-khuyn-mi .section-faq, .page-khuyn-mi .section-cta-final {
    padding: 40px 0;
  }
  .page-khuyn-mi .faq-question {
    padding: 15px 20px;
  }
  .page-khuyn-mi .faq-question h3 {
    font-size: 1.1em;
  }
  .page-khuyn-mi .faq-toggle {
    font-size: 1.5em;
  }
  .page-khuyn-mi .faq-answer {
    padding: 0 20px;
  }
  .page-khuyn-mi .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyn-mi .steps-list li {
    padding: 15px 20px;
  }
  .page-khuyn-mi .section-cta-final h2 {
    font-size: 2em;
  }
}

@media (max-width: 576px) {
  .page-khuyn-mi h1 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.4em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.2em;
  }
  .page-khuyn-mi .hero-content p {
    font-size: 1em;
  }
  .page-khuyn-mi .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-khuyn-mi .section-cta-final h2 {
    font-size: 1.8em;
  }
}