/* style/khuyen-mai.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0056b3;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-khuyen-mai-section {
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai-section:nth-of-type(odd) {
  background-color: #f0f2f5;
}

.page-khuyen-mai h1,
.page-khuyen-mai h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuyen-mai h1 {
  font-size: 2.8em;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai h2 {
  font-size: 2.2em;
  margin-top: 40px;
}

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

.page-khuyen-mai p {
  margin-bottom: 15px;
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuyen-mai a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Hero Section */
.page-khuyen-mai-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
  padding: 80px 0;
  overflow: hidden;
}

.page-khuyen-mai-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai-hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  padding: 0 20px;
}

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

.page-khuyen-mai-hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-khuyen-mai-cta-button:hover {
  background: #e6b000;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-dark);
  text-decoration: none;
}

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

.page-khuyen-mai-cta-button.secondary:hover {
  background: #e0e0e0;
  color: var(--bg-dark);
}

.page-khuyen-mai-cta-button.large {
  padding: 20px 60px;
  font-size: 1.5em;
}

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

.page-khuyen-mai-promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-khuyen-mai-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-khuyen-mai-promo-card h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-khuyen-mai-promo-card p {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: left;
  flex-grow: 1;
}

.page-khuyen-mai-promo-card ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 0.95em;
  color: var(--text-dark);
  text-align: left;
}

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

.page-khuyen-mai-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

.page-khuyen-mai-card-button:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* How-To Steps */
.page-khuyen-mai-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-khuyen-mai-steps li {
  counter-increment: step-counter;
  background-color: var(--card-bg);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 25px;
  padding: 25px 30px 25px 80px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: var(--text-dark);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6em;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

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

.page-khuyen-mai-steps li p {
  margin-bottom: 0;
  font-size: 1em;
  max-width: 100%;
}

/* Terms List */
.page-khuyen-mai-list-terms {
  list-style-type: disc;
  max-width: 900px;
  margin: 30px auto;
  text-align: left;
  padding-left: 25px;
}

.page-khuyen-mai-list-terms li {
  margin-bottom: 15px;
  font-size: 1.05em;
}

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

/* Benefits List */
.page-khuyen-mai-benefits-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-khuyen-mai-benefits-list li {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 1.1em;
  color: var(--text-dark);
  border-left: 4px solid var(--secondary-color);
}

.page-khuyen-mai-benefits-list li:last-child {
  margin-bottom: 0;
}

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

.page-khuyen-mai .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

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

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

.page-khuyen-mai .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.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: var(--bg-light);
  border-top: none;
}

.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;
  text-align: left;
  font-size: 1em;
}

/* Call to Action Final */
.page-khuyen-mai-call-to-action {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.page-khuyen-mai-call-to-action h2,
.page-khuyen-mai-call-to-action p {
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .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-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyen-mai-hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-khuyen-mai-cta-button {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai-section {
    padding: 40px 0;
  }
  .page-khuyen-mai-hero {
    padding: 60px 0;
  }
  .page-khuyen-mai-hero-image {
    max-height: 350px;
  }
  .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 p {
    font-size: 1em;
  }
  .page-khuyen-mai-promo-card {
    padding: 20px;
  }
  .page-khuyen-mai-card-image {
    height: 180px;
  }
  .page-khuyen-mai-steps li {
    padding: 20px 20px 20px 70px;
  }
  .page-khuyen-mai-steps li::before {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
    left: 15px;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai-container {
    padding: 0 15px;
  }
  .page-khuyen-mai h1 {
    font-size: 1.5em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.4em;
  }
  .page-khuyen-mai-hero-image {
    max-height: 250px;
  }
  .page-khuyen-mai-cta-button.large {
    padding: 15px 40px;
    font-size: 1.2em;
  }
  .page-khuyen-mai-promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai-steps li {
    padding: 15px 15px 15px 60px;
  }
  .page-khuyen-mai-steps li::before {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    left: 10px;
  }
}