/* style/khuyen-mai.css */

/* Biến CSS */
:root {
  --primary-color: #0A2342; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --accent-color: #CC0000; /* Deep Red for emphasis */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #071930;
  --border-color: #e0e0e0;
}

/* Cấu trúc chung */
.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: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  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(--secondary-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) 0%, #0A2342 50%, #1A3F6D 100%);
  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: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px 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-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai .hero-content p {
  font-size: 1.2em;
  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: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--secondary-color);
}

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

.page-khuyen-mai .cta-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Content Sections */
.page-khuyen-mai .content-section {
  padding: 80px 0;
}

.page-khuyen-mai .intro-section p {
  font-size: 1.1em;
  text-align: justify;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

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

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

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

.page-khuyen-mai .promo-card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai .promo-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-khuyen-mai .promo-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-khuyen-mai .promo-button:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Guide Section */
.page-khuyen-mai .guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

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

.page-khuyen-mai .guide-list li strong {
  color: var(--primary-color);
  font-size: 1.2em;
  display: block;
  margin-bottom: 5px;
}

/* Terms Section */
.page-khuyen-mai .terms-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-khuyen-mai .terms-section .section-title {
  color: var(--secondary-color);
}

.page-khuyen-mai .terms-section p {
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
  margin-bottom: 20px;
}

.page-khuyen-mai .terms-list {
  list-style: disc;
  margin-left: 25px;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* Why Choose Section */
.page-khuyen-mai .why-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-khuyen-mai .why-list li {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 1.1em;
  color: var(--primary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-khuyen-mai .why-list li::before {
  content: '✓';
  color: var(--secondary-color);
  font-size: 1.5em;
  font-weight: bolder;
}

.page-khuyen-mai .why-list li:hover {
  background-color: var(--background-light);
  transform: translateX(5px);
}

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

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

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

.faq-question:hover {
  background: var(--background-light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

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

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  color: var(--text-dark);
}

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

.faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyen-mai .hero-content h1 {
    font-size: 3em;
  }
  .page-khuyen-mai .section-title {
    font-size: 2em;
  }
}

@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 .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-khuyen-mai .content-section {
    padding: 60px 0;
  }
  .page-khuyen-mai .promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai .guide-list li, .page-khuyen-mai .terms-list li, .page-khuyen-mai .why-list li {
    font-size: 0.95em;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@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 .section-title {
    font-size: 1.5em;
  }
  .page-khuyen-mai .promo-card-title {
    font-size: 1.3em;
  }
  .page-khuyen-mai .promo-card p {
    font-size: 0.85em;
  }
  .page-khuyen-mai .guide-list li strong {
    font-size: 1.1em;
  }
  .page-khuyen-mai .why-list {
    grid-template-columns: 1fr;
  }
}