/* style/khuyen-mai.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Black */
  --text-light: #ffffff;
  --text-dark: #1A1A1A;
  --background-dark: #1A1A1A;
  --background-light: #f5f5f5;
  --border-color: #333;
}

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

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

/* 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: var(--background-dark);
}

.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;
}

.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%;
}

.page-khuyen-mai .hero-content h1 {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai .hero-content p {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-khuyen-mai .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

/* General Section Styling */
.page-khuyen-mai section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-khuyen-mai section:last-of-type {
  border-bottom: none;
}

.page-khuyen-mai h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-khuyen-mai p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-khuyen-mai ul,
.page-khuyen-mai ol {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--text-light);
}

.page-khuyen-mai ol {
  list-style-type: decimal;
}

.page-khuyen-mai li {
  margin-bottom: 10px;
  color: var(--text-light);
}

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

.page-khuyen-mai a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Promo Grid */
.page-khuyen-mai .promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuyen-mai .promo-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-khuyen-mai .promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai .promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai .promo-card h3 {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-khuyen-mai .promo-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-khuyen-mai .promo-card h3 a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-khuyen-mai .promo-card p {
  color: #ccc;
  padding: 0 15px;
  flex-grow: 1;
}

.page-khuyen-mai .btn-promo {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  margin: 20px auto;
  transition: all 0.3s ease;
}

.page-khuyen-mai .btn-promo:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* Guide Section */
.page-khuyen-mai .section-guide ol {
  list-style: none;
  padding: 0;
}

.page-khuyen-mai .section-guide ol li {
  background-color: #2a2a2a;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
}

.page-khuyen-mai .section-guide ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-khuyen-mai .section-guide ol li h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-khuyen-mai .section-guide ol li p {
  color: #ccc;
}

/* Terms Section */
.page-khuyen-mai .section-terms ul {
  list-style-type: square;
  padding-left: 25px;
}

.page-khuyen-mai .section-terms ul li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-khuyen-mai .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
}

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

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

.page-khuyen-mai .faq-question h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.3em;
}

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

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

.page-khuyen-mai .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background-color: #222;
}

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

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

/* Final CTA Section */
.page-khuyen-mai .section-cta-final {
  text-align: center;
  background-color: #2a2a2a;
  padding: 80px 20px;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai .section-cta-final h2 {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.page-khuyen-mai .section-cta-final p {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-khuyen-mai .cta-button-final {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-khuyen-mai .cta-button-final:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyen-mai .hero-content h1 {
    font-size: 2.8em;
  }
  .page-khuyen-mai h2 {
    font-size: 2.2em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.6em;
  }
  .page-khuyen-mai .promo-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai .hero-section {
    padding: 40px 15px;
  }
  .page-khuyen-mai .hero-content h1 {
    font-size: 2.2em;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 1em;
  }
  .page-khuyen-mai .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-khuyen-mai section {
    padding: 40px 0;
  }
  .page-khuyen-mai h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.4em;
  }
  .page-khuyen-mai .promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai .promo-card img {
    height: 150px;
  }
  .page-khuyen-mai .section-guide ol li {
    padding-left: 50px;
  }
  .page-khuyen-mai .section-guide ol li::before {
    left: 15px;
    top: 20px;
    width: 25px;
    height: 25px;
    font-size: 1em;
  }
  .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 .section-cta-final {
    padding: 50px 15px;
  }
  .page-khuyen-mai .section-cta-final h2 {
    font-size: 2em;
  }
  .page-khuyen-mai .cta-button-final {
    padding: 15px 35px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai .hero-content h1 {
    font-size: 1.8em;
  }
  .page-khuyen-mai .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.5em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.2em;
  }
  .page-khuyen-mai .section-guide ol li {
    padding: 20px;
    padding-left: 45px;
  }
  .page-khuyen-mai .section-guide ol li::before {
    left: 10px;
    top: 15px;
  }
  .page-khuyen-mai .section-cta-final h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai .cta-button-final {
    padding: 12px 30px;
    font-size: 1em;
  }
}