.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-khuyen-mai h1, .page-khuyen-mai h2, .page-khuyen-mai h3, .page-khuyen-mai h4 {
  color: #0A2463;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-khuyen-mai h1 {
  font-size: 3.2em;
  text-align: center;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-khuyen-mai h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-khuyen-mai h3 {
  font-size: 1.8em;
  color: #0A2463;
}

.page-khuyen-mai h4 {
  font-size: 1.4em;
  color: #0A2463;
}

.page-khuyen-mai p {
  margin-bottom: 15px;
}

.page-khuyen-mai a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-khuyen-mai a:hover {
  color: #E0B14A;
}

.page-khuyen-mai .btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #E0B14A;
  color: #0A2463;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-khuyen-mai .btn-primary:hover {
  background-color: #C09B3B;
  transform: translateY(-2px);
}

/* Hero Section */
.page-khuyen-mai .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, #0A2463 0%, #3a5c9f 100%); /* Adjusted for better contrast */
  color: #ffffff;
}

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

.page-khuyen-mai .hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-khuyen-mai .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-khuyen-mai .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-khuyen-mai .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-khuyen-mai .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #E0B14A;
  color: #0A2463;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai .cta-button:hover {
  background: #C09B3B;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Section Intro */
.page-khuyen-mai .section-intro {
  padding: 60px 0;
  background-color: #ffffff;
}

/* Section Offers */
.page-khuyen-mai .section-offers {
  padding: 60px 0;
  background-color: #f2f4f8;
}

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

.page-khuyen-mai .offer-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai .offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai .offer-card .offer-img {
  width: 100%;
  max-width: 350px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai .offer-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  min-height: 50px; /* Ensure consistent height */
}

.page-khuyen-mai .offer-card h3 a {
  color: #0A2463;
}

.page-khuyen-mai .offer-card p {
  color: #555555;
  font-size: 1em;
  margin-bottom: 20px;
  min-height: 90px; /* Ensure consistent height for description */
}

/* Section Deposit Bonuses */
.page-khuyen-mai .section-deposit-bonuses {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-khuyen-mai .bonus-item {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.page-khuyen-mai .bonus-item:hover {
  border-color: #E0B14A;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai .bonus-item .bonus-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuyen-mai .bonus-item h4 a {
  color: #0A2463;
}

/* Section Cashback */
.page-khuyen-mai .section-cashback {
  padding: 60px 0;
  background-color: #f2f4f8;
}

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

.page-khuyen-mai .cashback-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-khuyen-mai .cashback-card .cashback-img {
  width: 100%;
  max-width: 350px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai .cashback-card h4 a {
  color: #0A2463;
}

/* Section Events */
.page-khuyen-mai .section-events {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-khuyen-mai .event-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-khuyen-mai .event-list li {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.page-khuyen-mai .event-list li:hover {
  border-color: #E0B14A;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai .event-list .event-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuyen-mai .event-list h4 a {
  color: #0A2463;
}

/* Section Terms */
.page-khuyen-mai .section-terms {
  padding: 60px 0;
  background-color: #f2f4f8;
}

.page-khuyen-mai .terms-list {
  list-style: disc;
  margin-left: 25px;
  padding: 0;
  color: #555555;
}

.page-khuyen-mai .terms-list li {
  margin-bottom: 10px;
}

.page-khuyen-mai .terms-list strong {
  color: #0A2463;
}

/* Section Guide */
.page-khuyen-mai .section-guide {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-khuyen-mai .step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai .step-item {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.page-khuyen-mai .step-item:hover {
  border-color: #E0B14A;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai .step-item .step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuyen-mai .step-item h3 a {
  color: #0A2463;
}

/* Section Why Join */
.page-khuyen-mai .section-why-join {
  padding: 60px 0;
  background-color: #f2f4f8;
}

.page-khuyen-mai .reason-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-khuyen-mai .reason-list li {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai .reason-list li:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-khuyen-mai .reason-list .reason-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuyen-mai .reason-list h4 {
  color: #0A2463;
}

/* Section FAQ */
.page-khuyen-mai .section-faq {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-khuyen-mai .faq-container {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

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

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

.page-khuyen-mai .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: #0A2463;
}

.page-khuyen-mai .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E0B14A;
  transition: transform 0.3s ease;
}

.page-khuyen-mai .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #0A2463;
}

.page-khuyen-mai .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: #555555;
}

.page-khuyen-mai .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid #e0e0e0;
}

.page-khuyen-mai .faq-answer p {
  margin-bottom: 0;
}

.page-khuyen-mai .text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyen-mai h1 {
    font-size: 2.8em;
  }
  .page-khuyen-mai h2 {
    font-size: 2em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.5em;
  }
  .page-khuyen-mai .offer-grid, .page-khuyen-mai .bonus-list, .page-khuyen-mai .cashback-grid, .page-khuyen-mai .event-list, .page-khuyen-mai .step-by-step, .page-khuyen-mai .reason-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyen-mai .hero-content p {
    font-size: 1.1em;
  }
  .page-khuyen-mai .cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai h1 {
    font-size: 2.2em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.3em;
  }
  .page-khuyen-mai .offer-card .offer-img, .page-khuyen-mai .cashback-card .cashback-img {
    height: 200px;
  }
  .page-khuyen-mai .offer-card h3 {
    min-height: auto;
  }
  .page-khuyen-mai .offer-card p {
    min-height: auto;
  }
  .page-khuyen-mai .faq-question {
    padding: 15px 20px;
  }
  .page-khuyen-mai .faq-question h3 {
    font-size: 1.1em;
  }
  .page-khuyen-mai .faq-toggle {
    font-size: 20px;
  }
  .page-khuyen-mai .faq-answer {
    padding: 0 20px;
  }
  .page-khuyen-mai .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyen-mai .hero-section {
    padding: 40px 15px;
  }
  .page-khuyen-mai .hero-image {
    margin-bottom: 20px;
  }
  .page-khuyen-mai .cta-button {
    font-size: 16px;
    padding: 12px 30px;
  }
  .page-khuyen-mai .section-intro, .page-khuyen-mai .section-offers, .page-khuyen-mai .section-deposit-bonuses, .page-khuyen-mai .section-cashback, .page-khuyen-mai .section-events, .page-khuyen-mai .section-terms, .page-khuyen-mai .section-guide, .page-khuyen-mai .section-why-join, .page-khuyen-mai .section-faq {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai h1 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.6em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.2em;
  }
  .page-khuyen-mai .offer-grid, .page-khuyen-mai .bonus-list, .page-khuyen-mai .cashback-grid, .page-khuyen-mai .event-list, .page-khuyen-mai .step-by-step, .page-khuyen-mai .reason-list {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 1em;
  }
  .page-khuyen-mai .cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-khuyen-mai .faq-question h3 {
    font-size: 1em;
  }
}