/* style/khuyen-mai.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #1a1a1a;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-khuyen-mai .section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-khuyen-mai .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 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, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai .hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai .hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: bold;
  margin-top: 30px;
  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: #FFC107; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-khuyen-mai .intro-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-khuyen-mai .intro-section p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions List */
.page-khuyen-mai .promotions-list {
  padding: 60px 0;
  background-color: #e8eceb;
}

.page-khuyen-mai .promotion-card {
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuyen-mai .promotion-card .card-image {
  width: 40%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px 0 0 12px;
}

.page-khuyen-mai .promotion-card .card-content {
  width: 60%;
  padding: 30px;
}

.page-khuyen-mai .promotion-card h3 {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-khuyen-mai .promotion-card h3 a:hover {
  color: #1a7ad9; /* Slightly darker blue */
}

.page-khuyen-mai .promotion-card h4 {
  font-size: 22px;
  color: var(--text-dark);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-khuyen-mai .promotion-card p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-khuyen-mai .promotion-card ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-khuyen-mai .promotion-card ul li {
  font-size: 16px;
  margin-bottom: 8px;
}

.page-khuyen-mai .btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai .btn-primary:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Terms Section */
.page-khuyen-mai .terms-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-khuyen-mai .terms-content h3 {
  font-size: 26px;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-khuyen-mai .terms-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Why Choose Section */
.page-khuyen-mai .why-choose-section {
  padding: 60px 0;
  background-color: #e8eceb;
}

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

.page-khuyen-mai .feature-item {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.page-khuyen-mai .feature-item h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-khuyen-mai .feature-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* FAQ Section */
.page-khuyen-mai .faq-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

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

.page-khuyen-mai .faq-question:hover {
  background: #f0f0f0;
  border-color: var(--primary-color);
}

.page-khuyen-mai .faq-question h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin: 0;
  font-weight: bold;
}

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

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

.page-khuyen-mai .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

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

.page-khuyen-mai .faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-khuyen-mai .final-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color), #007bff);
  text-align: center;
  color: var(--text-light);
}

.page-khuyen-mai .final-cta-section .section-title {
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai .final-cta-section .section-title::after {
  background-color: var(--primary-color);
}

.page-khuyen-mai .final-cta-section p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer placeholder styles - ensure text is visible */
.shared-footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 40px 0;
  text-align: center;
}

.shared-footer p {
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyen-mai .hero-title {
    font-size: 40px;
  }
  .page-khuyen-mai .hero-description {
    font-size: 18px;
  }
  .page-khuyen-mai .cta-button {
    padding: 15px 35px;
    font-size: 20px;
  }
  .page-khuyen-mai .section-title {
    font-size: 32px;
  }
  .page-khuyen-mai .promotion-card {
    flex-direction: column;
  }
  .page-khuyen-mai .promotion-card .card-image {
    width: 100%;
    height: 250px;
    border-radius: 12px 12px 0 0;
  }
  .page-khuyen-mai .promotion-card .card-content {
    width: 100%;
    padding: 25px;
  }
  .page-khuyen-mai .promotion-card h3 {
    font-size: 24px;
  }
  .page-khuyen-mai .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai .hero-section {
    padding: 40px 15px;
  }
  .page-khuyen-mai .hero-title {
    font-size: 32px;
  }
  .page-khuyen-mai .hero-description {
    font-size: 16px;
  }
  .page-khuyen-mai .cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-khuyen-mai .section-title {
    font-size: 28px;
  }
  .page-khuyen-mai .intro-section p,
  .page-khuyen-mai .terms-content p,
  .page-khuyen-mai .feature-item p,
  .page-khuyen-mai .faq-answer p {
    font-size: 15px;
  }
  .page-khuyen-mai .promotion-card h3 {
    font-size: 22px;
  }
  .page-khuyen-mai .promotion-card h4 {
    font-size: 18px;
  }
  .page-khuyen-mai .faq-question h3 {
    font-size: 18px;
  }
  .page-khuyen-mai .faq-toggle {
    font-size: 24px;
  }
  .page-khuyen-mai .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyen-mai .final-cta-section p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai .hero-title {
    font-size: 28px;
  }
  .page-khuyen-mai .hero-description {
    font-size: 14px;
  }
  .page-khuyen-mai .cta-button {
    padding: 10px 25px;
    font-size: 16px;
  }
  .page-khuyen-mai .section-title {
    font-size: 24px;
  }
  .page-khuyen-mai .promotion-card .card-image {
    height: 200px;
  }
  .page-khuyen-mai .promotion-card .card-content {
    padding: 20px;
  }
  .page-khuyen-mai .promotion-card h3 {
    font-size: 20px;
  }
  .page-khuyen-mai .promotion-card ul li {
    font-size: 14px;
  }
  .page-khuyen-mai .btn-primary {
    padding: 10px 20px;
    font-size: 16px;
  }
  .page-khuyen-mai .terms-content h3 {
    font-size: 22px;
  }
  .page-khuyen-mai .feature-item h3 {
    font-size: 20px;
  }
  .page-khuyen-mai .faq-question h3 {
    font-size: 16px;
  }
  .page-khuyen-mai .faq-question {
    padding: 15px 20px;
  }
  .page-khuyen-mai .faq-toggle {
    font-size: 20px;
  }
  .page-khuyen-mai .faq-answer {
    padding: 15px 20px;
  }
}