/* style/khuyn-mi.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A202C;
  --text-dark: #1A202C;
  --text-light: #FFFFFF;
  --background-light: #f5f5f5;
  --background-dark: #1A202C;
  --border-color: #e0e0e0;
}

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

.page-khuyn-mi h1, .page-khuyn-mi h2, .page-khuyn-mi h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-khuyn-mi h1 {
  font-size: 3em;
  text-align: center;
  color: var(--text-light);
}

.page-khuyn-mi h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

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

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

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

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

.page-khuyn-mi__hero-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #3a475e 100%);
  color: var(--text-light);
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-khuyn-mi__hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-khuyn-mi__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

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

.page-khuyn-mi__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-khuyn-mi__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-khuyn-mi__cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-dark);
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi__cta-button:hover {
  background: #FFC107;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi__intro p {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-khuyn-mi__card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyn-mi__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi__card img {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-khuyn-mi__card p {
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-khuyn-mi__card-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-khuyn-mi__card-button:hover {
  background: #34495e;
}

.page-khuyn-mi__how-to-claim ol {
  list-style-type: decimal;
  padding-left: 30px;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyn-mi__how-to-claim ol li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-khuyn-mi__how-to-claim .page-khuyn-mi__cta-button {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyn-mi__terms-conditions ul {
  list-style-type: disc;
  padding-left: 30px;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyn-mi__terms-conditions ul li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-khuyn-mi__faq-container {
  max-width: 900px;
  margin: 40px auto 0;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.faq-question:hover {
  background: var(--background-light);
}

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

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

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  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: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

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

.faq-answer p {
  margin: 0;
  color: #555;
}

.page-khuyn-mi__cta-final {
  text-align: center;
  padding-bottom: 80px;
}

.page-khuyn-mi__cta-final p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-khuyn-mi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-khuyn-mi__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-khuyn-mi__cta-button--primary:hover {
  background: #FFC107;
}

.page-khuyn-mi__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-khuyn-mi__cta-button--secondary:hover {
  background: #34495e;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyn-mi h1 {
    font-size: 2.5em;
  }
  .page-khuyn-mi h2 {
    font-size: 2em;
  }
  .page-khuyn-mi__hero-banner {
    padding: 80px 15px;
  }
  .page-khuyn-mi__hero-content p {
    font-size: 1.1em;
  }
  .page-khuyn-mi__section {
    padding: 40px 15px;
  }
  .page-khuyn-mi__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyn-mi__card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi h1 {
    font-size: 2em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.4em;
  }
  .page-khuyn-mi__hero-banner {
    padding: 60px 10px;
  }
  .page-khuyn-mi__hero-content p {
    font-size: 1em;
  }
  .page-khuyn-mi__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-khuyn-mi__grid {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi__card {
    padding: 20px;
  }
  .page-khuyn-mi__card img {
    height: 180px;
  }
  .page-khuyn-mi__how-to-claim ol, .page-khuyn-mi__terms-conditions ul {
    padding-left: 20px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyn-mi__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-khuyn-mi__cta-button--primary, .page-khuyn-mi__cta-button--secondary {
    width: 80%;
    max-width: 300px;
  }
}