/* style/khuyn-mi.css */
:root {
  --primary-color: #0A192F; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --accent-color: #DC143C; /* Crimson Red */
  --text-light: #E0E0E0;
  --text-dark: #333333;
  --bg-light: #F4F4F4;
  --bg-dark: #1A2B42;
  --border-color: #3A4A60;
}

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

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

.page-khuyn-mi section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-khuyn-mi h1, .page-khuyn-mi h2, .page-khuyn-mi h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-khuyn-mi h2 {
  font-size: 2.5em;
  color: var(--primary-color);
}

.page-khuyn-mi h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

.page-khuyn-mi p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-khuyn-mi ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-khuyn-mi .cta-button, .page-khuyn-mi .btn-promo {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.page-khuyn-mi .cta-button:hover, .page-khuyn-mi .btn-promo:hover {
  background: #B2002A; /* Darker Crimson */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .cta-button-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  margin-left: 15px;
}

.page-khuyn-mi .cta-button-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 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: 80px 20px;
  background-color: var(--primary-color);
  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: 1;
}

.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 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-khuyn-mi .hero-content p {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-khuyn-mi .section-intro {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

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

/* Promo Categories */
.page-khuyn-mi .section-promo-categories {
  background-color: var(--bg-light);
}

.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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-khuyn-mi .promo-card h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.page-khuyn-mi .promo-card h3 a:hover {
  color: var(--secondary-color);
}

.page-khuyn-mi .promo-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 25px;
  text-align: left;
  flex-grow: 1;
}

.page-khuyn-mi .promo-card .btn-promo {
  width: auto;
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

/* How To Claim Section */
.page-khuyn-mi .section-how-to-claim {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-khuyn-mi .section-how-to-claim h2 {
  color: var(--secondary-color);
}

.page-khuyn-mi .section-how-to-claim p, .page-khuyn-mi .section-how-to-claim li {
  color: var(--text-light);
  text-align: left;
}

.page-khuyn-mi .section-how-to-claim ol {
  list-style-type: decimal;
  max-width: 800px;
  margin: 30px auto;
  padding-left: 25px;
}

.page-khuyn-mi .section-how-to-claim ol li strong {
  color: var(--secondary-color);
}

.page-khuyn-mi .section-how-to-claim a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-khuyn-mi .section-how-to-claim a:hover {
  color: #ffffff;
}

.page-khuyn-mi .section-how-to-claim .cta-button, .page-khuyn-mi .section-how-to-claim .cta-button-secondary {
  margin-top: 30px;
  margin-left: 0;
  margin-right: 15px;
}

/* FAQ Section */
.page-khuyn-mi .section-faq {
  background-color: #ffffff;
}

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

.page-khuyn-mi .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

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

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

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

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

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

.page-khuyn-mi .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

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

.page-khuyn-mi .faq-answer p {
  margin: 0;
  text-align: left;
}

/* Bottom CTA */
.page-khuyn-mi .section-cta-bottom {
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-khuyn-mi .section-cta-bottom p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.page-khuyn-mi .section-cta-bottom .cta-button, .page-khuyn-mi .section-cta-bottom .cta-button-secondary {
  margin: 0 10px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyn-mi h1 {
    font-size: 2.8em;
  }
  .page-khuyn-mi h2 {
    font-size: 2.2em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.6em;
  }
  .page-khuyn-mi .promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi section {
    padding: 40px 0;
  }
  .page-khuyn-mi .hero-section {
    padding: 60px 15px;
  }
  .page-khuyn-mi .hero-image img {
    border-radius: 8px;
  }
  .page-khuyn-mi h1 {
    font-size: 2.2em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.4em;
  }
  .page-khuyn-mi .cta-button, .page-khuyn-mi .btn-promo, .page-khuyn-mi .cta-button-secondary {
    padding: 12px 25px;
    font-size: 1em;
    margin: 10px auto;
    display: block;
    width: fit-content;
  }
  .page-khuyn-mi .cta-button-secondary {
    margin-left: auto;
  }
  .page-khuyn-mi .promo-card {
    padding: 20px;
  }
  .page-khuyn-mi .promo-card img {
    height: 180px;
  }
  .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: 20px;
  }
  .page-khuyn-mi .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyn-mi .section-how-to-claim ol {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi h1 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.6em;
  }
  .page-khuyn-mi .hero-content p {
    font-size: 1em;
  }
  .page-khuyn-mi .promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi .section-cta-bottom .cta-button-secondary {
    margin-top: 15px;
  }
}