/* style/khuyn-mi.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --border-color: #e0e0e0;
}

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

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

.page-khuyn-mi .bg-light {
  background-color: #ffffff;
}

.page-khuyn-mi .text-center {
  text-align: center;
}

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

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

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

.page-khuyn-mi h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
}

.page-khuyn-mi h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
}

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

/* Hero Section */
.page-khuyn-mi-hero {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker blue for background */
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-khuyn-mi-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-khuyn-mi-hero-image {
  width: 100%;
  max-width: 900px; /* Adjust max-width for image */
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

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

.page-khuyn-mi-hero-content {
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
}

.page-khuyn-mi-hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-khuyn-mi-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-khuyn-mi-cta-button:hover {
  background: #e0a800; /* Slightly darker secondary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-khuyn-mi-cta-button.secondary:hover {
  background: #0056b3;
}

.page-khuyn-mi-cta-button.large {
  padding: 18px 50px;
  font-size: 1.4em;
}

/* Intro Section */
.page-khuyn-mi-intro h2 {
  color: var(--primary-color);
}

/* Categories Grid */
.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-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-khuyn-mi-card h3 {
  font-size: 1.4em;
  margin: 0 20px 15px;
  min-height: 60px; /* Ensure consistent height for titles */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.page-khuyn-mi-card p {
  font-size: 1em;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px; /* Space before button */
}

.page-khuyn-mi-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* How to Claim Section */
.page-khuyn-mi-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-khuyn-mi-steps li {
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-khuyn-mi-steps li h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-khuyn-mi-steps li h3::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: var(--secondary-color);
  color: var(--bg-dark);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-khuyn-mi-steps li h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-khuyn-mi-steps li p {
  margin-bottom: 0;
  padding-left: 50px; /* Align with text after counter */
}

/* Terms & Conditions */
.page-khuyn-mi-terms ul {
  list-style: disc;
  margin-left: 25px;
  margin-top: 20px;
  font-size: 1.05em;
  color: #444444;
}

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

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

/* FAQ Section */
.page-khuyn-mi-faq-list {
  margin-top: 40px;
}

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

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

.page-khuyn-mi-faq-list .faq-question:hover {
  background: var(--bg-light);
}

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

.page-khuyn-mi-faq-list .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

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

.page-khuyn-mi-faq-list .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--bg-light);
  color: #444444;
}

.page-khuyn-mi-faq-list .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.page-khuyn-mi-faq-list .faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* Final CTA */
.page-khuyn-mi-cta-final {
  background: linear-gradient(45deg, var(--primary-color), #0056b3);
  color: var(--text-light);
  padding: 80px 20px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi-cta-final h2 {
  color: var(--text-light);
  font-size: 2.5em;
  margin-bottom: 25px;
}

.page-khuyn-mi-cta-final p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyn-mi h1 {
    font-size: 2.4em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.4em;
  }
  .page-khuyn-mi-hero {
    padding: 60px 15px;
  }
  .page-khuyn-mi-hero-image {
    margin-bottom: 30px;
  }
  .page-khuyn-mi-hero-content p {
    font-size: 1.1em;
  }
  .page-khuyn-mi-cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-khuyn-mi-cta-button.large {
    padding: 15px 40px;
    font-size: 1.2em;
  }
  .page-khuyn-mi-card-img {
    height: 180px;
  }
  .page-khuyn-mi-card h3 {
    font-size: 1.2em;
  }
  .page-khuyn-mi-steps li {
    padding: 25px;
  }
  .page-khuyn-mi-steps li p {
    padding-left: 45px;
  }
  .page-khuyn-mi-faq-list .faq-question {
    padding: 15px 20px;
  }
  .page-khuyn-mi-faq-list .faq-question h3 {
    font-size: 1.1em;
  }
  .page-khuyn-mi-faq-list .faq-toggle {
    font-size: 20px;
  }
  .page-khuyn-mi-faq-list .faq-answer {
    padding: 0 20px;
  }
  .page-khuyn-mi-faq-list .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyn-mi-cta-final h2 {
    font-size: 2em;
  }
  .page-khuyn-mi-cta-final p {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi h1 {
    font-size: 2em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.6em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.3em;
  }
  .page-khuyn-mi .section-spacing {
    padding: 40px 0;
  }
  .page-khuyn-mi-hero {
    padding: 40px 15px;
  }
  .page-khuyn-mi-hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .page-khuyn-mi-hero-content p {
    font-size: 1em;
  }
  .page-khuyn-mi-cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-khuyn-mi-cta-button.large {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-khuyn-mi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyn-mi-card {
    padding-bottom: 20px;
    border-radius: 8px;
  }
  .page-khuyn-mi-card-img {
    height: 160px;
  }
  .page-khuyn-mi-card h3 {
    font-size: 1.1em;
    min-height: auto;
    padding: 0 15px;
  }
  .page-khuyn-mi-card p {
    padding: 0 15px;
  }
  .page-khuyn-mi-steps li {
    padding: 20px;
    border-radius: 8px;
  }
  .page-khuyn-mi-steps li h3 {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;
  }
  .page-khuyn-mi-steps li h3::before {
    margin-bottom: 10px;
    margin-right: 0;
  }
  .page-khuyn-mi-steps li p {
    padding-left: 0;
  }
  .page-khuyn-mi-faq-list .faq-question {
    padding: 12px 18px;
  }
  .page-khuyn-mi-faq-list .faq-question h3 {
    font-size: 1em;
  }
  .page-khuyn-mi-faq-list .faq-toggle {
    font-size: 18px;
  }
  .page-khuyn-mi-faq-list .faq-answer {
    padding: 0 18px;
  }
  .page-khuyn-mi-faq-list .faq-item.active .faq-answer {
    padding: 12px 18px;
  }
  .page-khuyn-mi-cta-final {
    padding: 50px 15px;
    border-radius: 8px;
  }
  .page-khuyn-mi-cta-final h2 {
    font-size: 1.8em;
  }
  .page-khuyn-mi-cta-final p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi h1 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.4em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.2em;
  }
  .page-khuyn-mi-hero-content p {
    font-size: 0.95em;
  }
  .page-khuyn-mi-cta-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-khuyn-mi-cta-button.large {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-khuyn-mi-card h3 {
    font-size: 1em;
  }
  .page-khuyn-mi-card-img {
    height: 140px;
  }
  .page-khuyn-mi-faq-list .faq-question h3 {
    font-size: 0.95em;
  }
  .page-khuyn-mi-faq-list .faq-toggle {
    font-size: 16px;
  }
  .page-khuyn-mi-cta-final h2 {
    font-size: 1.6em;
  }
  .page-khuyn-mi-cta-final p {
    font-size: 0.95em;
  }
}