/* style/khuyn-mi.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

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

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

.page-khuyn-mi .section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  font-weight: bold;
}

.page-khuyn-mi p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-khuyn-mi ul,
.page-khuyn-mi ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page-khuyn-mi li {
  margin-bottom: 8px;
}

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

.page-khuyn-mi a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-khuyn-mi .btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 16px;
}

.page-khuyn-mi .btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-khuyn-mi .btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
  margin-left: 15px;
}

.page-khuyn-mi .btn-secondary:hover {
  background-color: darken(var(--secondary-color), 10%);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

/* Hero Section */
.page-khuyn-mi-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a80000 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.page-khuyn-mi-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-khuyn-mi-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-khuyn-mi-hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-khuyn-mi-hero .hero-image {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px; /* Adjust max-width for better visual */
}

.page-khuyn-mi-hero .hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-khuyn-mi-intro {
  padding: 60px 0;
  background-color: var(--background-light);
}

/* Promotion Types Section */
.page-khuyn-mi-types {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-khuyn-mi-types .section-title {
  color: var(--primary-color);
}

.page-khuyn-mi-types p {
  color: #cccccc;
}

.page-khuyn-mi-types h3 a {
  color: var(--primary-color);
}

.page-khuyn-mi-types h3 a:hover {
  color: var(--text-light);
}

.page-khuyn-mi-types .promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuyn-mi-types .promo-card {
  background-color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-khuyn-mi-types .promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-khuyn-mi-types .promo-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  padding: 0 15px;
  min-height: 70px; /* Ensure consistent height for titles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-khuyn-mi-types .promo-card p {
  font-size: 15px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-khuyn-mi-types .promo-card .btn {
  margin-top: 20px;
  align-self: center;
}

/* Terms Section */
.page-khuyn-mi-terms {
  padding: 60px 0;
  background-color: var(--background-light);
}

/* How-To Section */
.page-khuyn-mi-how-to {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-khuyn-mi-how-to .section-title {
  color: var(--primary-color);
}

.page-khuyn-mi-how-to p,
.page-khuyn-mi-how-to li {
  color: #cccccc;
}

.page-khuyn-mi-how-to ol {
  list-style-type: decimal;
  padding-left: 30px;
}

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

.page-khuyn-mi-how-to .btn-primary {
  margin-top: 30px;
}

/* Why Choose Section */
.page-khuyn-mi-why-choose {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

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

.page-khuyn-mi-faq .faq-list {
  margin-top: 30px;
}

.page-khuyn-mi-faq .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-khuyn-mi-faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #3a3a3a; /* Darker background for questions */
  border: 1px solid #555555;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-khuyn-mi-faq .faq-question:hover {
  background: #4a4a4a;
}

.page-khuyn-mi-faq .faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: var(--primary-color);
}

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

.page-khuyn-mi-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #2a2a2a; /* Even darker for answer background */
  border-radius: 0 0 8px 8px;
  color: #cccccc;
}

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

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

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

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

.page-khuyn-mi-cta-final .btn {
  margin: 15px 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyn-mi-hero h1 {
    font-size: 40px;
  }

  .page-khuyn-mi .section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi-hero {
    padding: 60px 0;
  }

  .page-khuyn-mi-hero h1 {
    font-size: 32px;
  }

  .page-khuyn-mi-hero p {
    font-size: 16px;
  }

  .page-khuyn-mi .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-khuyn-mi .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .page-khuyn-mi .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }

  .page-khuyn-mi-hero .container {
    flex-direction: column;
  }

  .page-khuyn-mi-hero .hero-content {
    order: 2;
  }

  .page-khuyn-mi-hero .hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-khuyn-mi-types .promo-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyn-mi-types .promo-card h3 {
    font-size: 20px;
    min-height: auto;
  }

  .page-khuyn-mi-faq .faq-question h3 {
    font-size: 16px;
  }

  .page-khuyn-mi-faq .faq-toggle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi-hero h1 {
    font-size: 28px;
  }

  .page-khuyn-mi .section-title {
    font-size: 22px;
  }

  .page-khuyn-mi .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  .page-khuyn-mi-hero .hero-content .btn {
    margin: 10px auto;
  }
}