/* style/khuyn-mi.css */
:root {
  --primary-color: #0A0A0A;
  --secondary-color: #FFD700;
  --accent-color: #DC143C;
  --text-light: #FFFFFF;
  --text-dark: #0A0A0A;
  --background-light: #F5F5F5;
  --border-color: #333333;
  --card-background: #1A1A1A;
  --hover-gold: #e6c200;
}

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

.page-khuyn-mi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 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: linear-gradient(135deg, var(--primary-color) 0%, #333333 100%);
  overflow: hidden;
}

.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;
  z-index: 2;
}

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

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

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

.page-khuyn-mi-subtitle {
  font-size: 1.4em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.page-khuyn-mi-cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--accent-color);
}

.page-khuyn-mi-cta-button:hover {
  background: #a81030;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-khuyn-mi section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-khuyn-mi section:last-of-type {
  border-bottom: none;
}

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

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

.page-khuyn-mi .section-guide {
  background-color: var(--card-background);
}

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

.page-khuyn-mi .section-why-choose {
  background-color: var(--card-background);
}

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

.page-khuyn-mi .section-conclusion {
  background-color: var(--card-background);
  text-align: center;
}

.page-khuyn-mi-section-heading {
  font-size: 2.8em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-khuyn-mi p {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 20px;
  opacity: 0.85;
}

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

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

.page-khuyn-mi-secondary-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi-secondary-button:hover {
  background: var(--hover-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-khuyn-mi-promo-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.page-khuyn-mi-promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-khuyn-mi-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi-card-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent height for titles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-khuyn-mi-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.page-khuyn-mi-card-description {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 25px;
  opacity: 0.8;
  min-height: 100px; /* Ensure consistent height for descriptions */
  display: flex;
  align-items: center;
  text-align: left;
}

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

.page-khuyn-mi-card-button:hover {
  background: #a81030;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Guide List */
.page-khuyn-mi-guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-khuyn-mi-guide-list li {
  background-color: var(--card-background);
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--secondary-color);
}

.page-khuyn-mi-guide-list li h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-khuyn-mi-guide-list li p {
  color: var(--text-light);
  margin-bottom: 15px;
  opacity: 0.85;
}

.page-khuyn-mi-mini-button {
  display: inline-block;
  padding: 8px 18px;
  background: #444;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-khuyn-mi-mini-button:hover {
  background: #666;
}

/* Terms List */
.page-khuyn-mi-terms-list {
  list-style: disc;
  margin-left: 25px;
  color: var(--text-light);
  font-size: 1.1em;
  opacity: 0.85;
}

.page-khuyn-mi-terms-list li {
  margin-bottom: 15px;
}

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

/* Why Choose Section */
.page-khuyn-mi-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuyn-mi-feature-item {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
  transition: transform 0.3s ease;
}

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

.page-khuyn-mi-feature-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-khuyn-mi-feature-item h3 {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-khuyn-mi-feature-item p {
  font-size: 1em;
  color: var(--text-light);
  opacity: 0.8;
}

/* FAQ Section */
.page-khuyn-mi-faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--card-background);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #2a2a2a;
}

.faq-question h3 {
  font-size: 1.25em;
  color: var(--text-light);
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #111111;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px;
}

.faq-item.active .faq-answer p {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyn-mi-title {
    font-size: 3em;
  }

  .page-khuyn-mi-subtitle {
    font-size: 1.2em;
  }

  .page-khuyn-mi-section-heading {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi .hero-section {
    padding: 40px 15px;
  }

  .page-khuyn-mi .hero-image {
    margin-bottom: 20px;
  }

  .page-khuyn-mi .hero-image img {
    border-radius: 8px;
  }

  .page-khuyn-mi-title {
    font-size: 2.5em;
  }

  .page-khuyn-mi-subtitle {
    font-size: 1.1em;
  }

  .page-khuyn-mi-cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }

  .page-khuyn-mi section {
    padding: 50px 0;
  }

  .page-khuyn-mi-section-heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-khuyn-mi-promo-card {
    padding: 20px;
  }

  .page-khuyn-mi-card-title {
    font-size: 1.5em;
    min-height: auto;
  }

  .page-khuyn-mi-card-description {
    min-height: auto;
  }

  .page-khuyn-mi-guide-list li {
    padding: 20px;
  }

  .page-khuyn-mi-guide-list li h3 {
    font-size: 1.4em;
  }

  .page-khuyn-mi-feature-item {
    padding: 20px;
  }

  .page-khuyn-mi-feature-item img {
    width: 80px;
    height: 80px;
  }

  .faq-question {
    padding: 15px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 1.5em;
  }

  .faq-answer {
    padding: 0 15px;
  }

  .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi-title {
    font-size: 2em;
  }

  .page-khuyn-mi-subtitle {
    font-size: 1em;
  }

  .page-khuyn-mi-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-khuyn-mi-section-heading {
    font-size: 1.5em;
  }

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

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

  .page-khuyn-mi-card-image {
    height: 200px;
  }
}