/* style/khuyn-mi.css */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #F0F2F5;
  --text-dark: #333333;
  --background-light: #ffffff;
  --background-dark: #1A2E47;
  --border-color: #e0e0e0;
}

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

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

/* 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-color: var(--primary-color);
  color: var(--text-light);
}

.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: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-khuyn-mi .hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-khuyn-mi .hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-khuyn-mi .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-khuyn-mi .cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-khuyn-mi .section-intro, 
.page-khuyn-mi .section-promotions, 
.page-khuyn-mi .section-terms, 
.page-khuyn-mi .section-why-choose, 
.page-khuyn-mi .section-guide, 
.page-khuyn-mi .section-faq {
  padding: 60px 0;
}

.page-khuyn-mi .section-intro {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-khuyn-mi .section-intro .section-title {
  color: var(--secondary-color);
}

.page-khuyn-mi .section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-khuyn-mi .section-intro .section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-khuyn-mi .section-description {
  font-size: 1.1em;
  text-align: justify;
  margin-bottom: 20px;
}

/* Promotion Grid */
.page-khuyn-mi .promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuyn-mi .promotion-card {
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.page-khuyn-mi .promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-khuyn-mi .card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin: 0 20px 10px 20px;
  font-weight: bold;
}

.page-khuyn-mi .card-text {
  font-size: 1em;
  color: var(--text-dark);
  margin: 0 20px 15px 20px;
  flex-grow: 1;
}

.page-khuyn-mi .card-example {
  font-size: 0.95em;
  color: #555;
  font-style: italic;
  margin: 0 20px 15px 20px;
}

.page-khuyn-mi .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;
  margin: 0 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

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

/* Terms List */
.page-khuyn-mi .terms-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-khuyn-mi .terms-list li {
  background-color: var(--background-light);
  border-left: 5px solid var(--secondary-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-khuyn-mi .terms-list li p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.05em;
}

.page-khuyn-mi .terms-list li strong {
  color: var(--primary-color);
}

/* Why Choose List */
.page-khuyn-mi .why-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-khuyn-mi .why-list li {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.page-khuyn-mi .why-list li:hover {
  transform: translateY(-5px);
}

.page-khuyn-mi .why-list li p {
  margin: 0;
  font-size: 1.1em;
}

.page-khuyn-mi .why-list li strong {
  color: var(--secondary-color);
}

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

.page-khuyn-mi .step-item {
  background-color: var(--background-light);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-khuyn-mi .step-item:hover {
  transform: translateY(-5px);
}

.page-khuyn-mi .step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuyn-mi .step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyn-mi .step-text {
  font-size: 1em;
  color: var(--text-dark);
}

.page-khuyn-mi .cta-bottom {
  text-align: center;
  margin-top: 50px;
}

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

.page-khuyn-mi .section-faq .section-title {
  color: var(--secondary-color);
}

.page-khuyn-mi .section-faq .section-description {
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-khuyn-mi .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.faq-question:hover {
  background: #1a3250; /* Slightly lighter primary for hover */
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-light);
  font-weight: bold;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #2a405a; /* A lighter shade of primary */
  color: var(--text-light);
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-answer p {
  margin: 0;
  font-size: 1.05em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyn-mi .hero-title {
    font-size: 2.8em;
  }
  .page-khuyn-mi .hero-subtitle {
    font-size: 1.2em;
  }
  .page-khuyn-mi .section-title {
    font-size: 2em;
  }
  .page-khuyn-mi .promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi .hero-section {
    padding: 40px 15px;
  }
  .page-khuyn-mi .hero-title {
    font-size: 2.2em;
  }
  .page-khuyn-mi .hero-subtitle {
    font-size: 1em;
  }
  .page-khuyn-mi .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-khuyn-mi .section-intro, 
  .page-khuyn-mi .section-promotions, 
  .page-khuyn-mi .section-terms, 
  .page-khuyn-mi .section-why-choose, 
  .page-khuyn-mi .section-guide, 
  .page-khuyn-mi .section-faq {
    padding: 40px 0;
  }
  .page-khuyn-mi .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-khuyn-mi .section-description {
    font-size: 0.95em;
    text-align: left;
  }
  .page-khuyn-mi .promotion-card {
    padding-bottom: 15px;
  }
  .page-khuyn-mi .card-image {
    height: 180px;
  }
  .page-khuyn-mi .card-title {
    font-size: 1.4em;
    margin: 0 15px 8px 15px;
  }
  .page-khuyn-mi .card-text {
    font-size: 0.9em;
    margin: 0 15px 10px 15px;
  }
  .page-khuyn-mi .card-button {
    padding: 10px 20px;
    font-size: 0.9em;
    margin: 0 15px;
  }
  .page-khuyn-mi .terms-list, .page-khuyn-mi .why-list {
    margin: 30px auto;
  }
  .page-khuyn-mi .terms-list li, .page-khuyn-mi .why-list li {
    padding: 15px 20px;
  }
  .page-khuyn-mi .step-icon {
    width: 80px;
    height: 80px;
  }
  .page-khuyn-mi .step-title {
    font-size: 1.2em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi .hero-title {
    font-size: 1.8em;
  }
  .page-khuyn-mi .hero-subtitle {
    font-size: 0.9em;
  }
  .page-khuyn-mi .cta-button {
    width: 90%;
    margin: 20px auto 0 auto;
  }
  .page-khuyn-mi .section-title {
    font-size: 1.5em;
  }
  .page-khuyn-mi .promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi .card-image {
    height: 150px;
  }
  .page-khuyn-mi .guide-steps {
    grid-template-columns: 1fr;
  }
  .faq-question h3 {
    font-size: 0.9em;
  }
}