/* style/khuyn-mi.css */
:root {
  --primary-color: #0A2342;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #0A2342;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
  --hover-color: #e0b800;
}

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

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

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

.page-khuyn-mi__section:nth-of-type(even) {
  background-color: #e9ecef;
}

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

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

.page-khuyn-mi h2 {
  font-size: 2.2em;
  padding-bottom: 15px;
  position: relative;
}

.page-khuyn-mi h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

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

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

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

/* Hero Section */
.page-khuyn-mi__hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-dark);
  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%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-khuyn-mi__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-khuyn-mi__hero-content h1,
.page-khuyn-mi__hero-content p {
  color: var(--text-light);
}

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

.page-khuyn-mi__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-khuyn-mi__cta-button:hover {
  background: var(--hover-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi__cta-button--bottom {
  margin-top: 40px;
  font-size: 1.4em;
  padding: 18px 50px;
}

/* Image Full Width */
.page-khuyn-mi__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  display: block;
  object-fit: cover;
}

/* Promo 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: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  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(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-khuyn-mi__promo-card h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  padding: 0 20px;
  color: var(--primary-color);
}

.page-khuyn-mi__promo-card h3 a {
  color: var(--primary-color);
}

.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);
  padding: 0 20px;
  text-align: center;
  flex-grow: 1;
}

.page-khuyn-mi__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-khuyn-mi__btn-small:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* How-To-Claim Steps */
.page-khuyn-mi__steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-khuyn-mi__steps li {
  background: var(--card-background);
  border-left: 5px solid var(--secondary-color);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-khuyn-mi__steps li:hover {
  transform: translateX(5px);
}

.page-khuyn-mi__steps li h3 {
  text-align: left;
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-khuyn-mi__steps li p {
  text-align: left;
  margin-bottom: 0;
}

/* Benefits Grid */
.page-khuyn-mi__benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-khuyn-mi__benefit-item {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyn-mi__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-khuyn-mi__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuyn-mi__benefit-item h3 {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-khuyn-mi__benefit-item p {
  font-size: 0.9em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0;
}

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

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

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

.faq-question:hover {
  background: #f5f5f5;
}

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

.faq-toggle {
  font-size: 2em;
  font-weight: normal;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
  margin-left: 15px;
}

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

.faq-answer p {
  padding-bottom: 20px;
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

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

/* 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__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyn-mi__benefit-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-khuyn-mi__hero-content p {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi__section {
    padding: 40px 0;
  }
  .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__hero-image {
    margin-bottom: 20px;
  }
  .page-khuyn-mi__hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-khuyn-mi__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-khuyn-mi__cta-button--bottom {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .page-khuyn-mi__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi__steps li {
    padding: 20px;
  }
  .page-khuyn-mi__steps li h3 {
    font-size: 1.3em;
  }
  .page-khuyn-mi__benefit-grid {
    grid-template-columns: 1fr;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi__container {
    padding: 15px;
  }
  .page-khuyn-mi h1 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.5em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.2em;
  }
  .page-khuyn-mi__cta-button {
    width: 100%;
    box-sizing: border-box;
  }
  .page-khuyn-mi__promo-card h3 {
    font-size: 1.2em;
  }
  .page-khuyn-mi__btn-small {
    width: calc(100% - 40px);
    box-sizing: border-box;
  }
  .faq-question h3 {
    font-size: 1em;
  }
}