/* style/khuyen-mai.css */
:root {
  --primary-color: #1A2A3A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f4f7f6;
  --bg-dark: #0f1a25;
  --accent-color: #e6c200;
  --border-color: #e0e0e0;
}

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

.page-khuyen-mai h1, .page-khuyen-mai h2, .page-khuyen-mai h3, .page-khuyen-mai h4, .page-khuyen-mai h5, .page-khuyen-mai h6 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-khuyen-mai h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-khuyen-mai 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-khuyen-mai h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 25px;
}

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

.page-khuyen-mai ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-khuyen-mai ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-khuyen-mai li {
  margin-bottom: 8px;
}

.page-khuyen-mai .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 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(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.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;
  z-index: 2;
}

.page-khuyen-mai .hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai .hero-content {
  text-align: center;
  width: 100%;
}

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

.page-khuyen-mai .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.page-khuyen-mai .section-intro, .page-khuyen-mai .section-promotions-types, .page-khuyen-mai .section-how-to-claim, .page-khuyen-mai .section-terms, .page-khuyen-mai .section-why-choose, .page-khuyen-mai .section-faq, .page-khuyen-mai .section-cta-bottom {
  padding: 60px 0;
}

.page-khuyen-mai .section-intro {
  background-color: var(--bg-light);
}

.page-khuyen-mai .section-promotions-types {
  background-color: #f0f3f6;
}

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

.page-khuyen-mai .promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuyen-mai .promotion-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai .promotion-card h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-khuyen-mai .promotion-card p {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
}

.page-khuyen-mai .promotion-card .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-khuyen-mai .promotion-card .btn-small:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai .section-how-to-claim {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-khuyen-mai .section-how-to-claim h2 {
  color: var(--secondary-color);
}

.page-khuyen-mai .section-how-to-claim p {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-khuyen-mai .step-item {
  background-color: #2a3e50;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-khuyen-mai .step-item:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai .step-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  padding: 5px;
  background-color: #fff;
}

.page-khuyen-mai .step-item h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-khuyen-mai .step-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
}

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

.page-khuyen-mai .section-terms {
  background-color: var(--bg-light);
}

.page-khuyen-mai .section-why-choose {
  background-color: #f0f3f6;
}

.page-khuyen-mai .section-faq {
  background-color: var(--bg-light);
}

/* FAQ Styles */
.page-khuyen-mai .faq-list {
  margin-top: 30px;
}

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

.page-khuyen-mai .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-khuyen-mai .faq-question:hover {
  background: #f5f5f5;
}

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

.page-khuyen-mai .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

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

.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: var(--text-dark);
}

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

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

.page-khuyen-mai .section-cta-bottom {
  background: linear-gradient(135deg, var(--primary-color), #2a3e50);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-khuyen-mai .section-cta-bottom h2 {
  color: var(--secondary-color);
  font-size: 2.5em;
}

.page-khuyen-mai .section-cta-bottom p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-khuyen-mai .large-button {
  padding: 20px 50px;
  font-size: 1.6em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyen-mai .hero-content h1 {
    font-size: 3em;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 1.2em;
  }
  .page-khuyen-mai .cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
  .page-khuyen-mai h2 {
    font-size: 2em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.6em;
  }
  .page-khuyen-mai .promotion-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyen-mai .claim-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai .hero-section {
    padding: 40px 15px;
  }
  .page-khuyen-mai .hero-content h1 {
    font-size: 2.5em;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 1em;
  }
  .page-khuyen-mai .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.4em;
  }
  .page-khuyen-mai .section-intro, .page-khuyen-mai .section-promotions-types, .page-khuyen-mai .section-how-to-claim, .page-khuyen-mai .section-terms, .page-khuyen-mai .section-why-choose, .page-khuyen-mai .section-faq, .page-khuyen-mai .section-cta-bottom {
    padding: 40px 0;
  }
  .page-khuyen-mai .promotion-card-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai .claim-steps {
    grid-template-columns: 1fr;
  }
  .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: 1.5em;
  }
  .page-khuyen-mai .faq-answer {
    padding: 0 20px;
  }
  .page-khuyen-mai .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyen-mai .section-cta-bottom h2 {
    font-size: 2em;
  }
  .page-khuyen-mai .section-cta-bottom p {
    font-size: 1em;
  }
  .page-khuyen-mai .large-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai .hero-content h1 {
    font-size: 2em;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 0.9em;
  }
  .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 .promotion-card img {
    height: 150px;
  }
  .page-khuyen-mai .step-item img {
    width: 100px;
    height: 100px;
  }
  .page-khuyen-mai .section-cta-bottom h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai .large-button {
    padding: 12px 30px;
    font-size: 1em;
  }
}