/* style/faq.css */

/* Biến CSS */
:root {
  --primary-color: #003366; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f5f5f5;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-faq h1, .page-faq h2, .page-faq h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-faq h1 {
  font-size: 2.8em;
  text-align: center;
}

.page-faq h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-faq h3 {
  font-size: 1.5em;
}

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

.page-faq .highlight-text {
  color: var(--secondary-color);
}

/* Hero Section */
.page-faq .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--primary-color); /* Fallback color */
  color: var(--text-color-light);
}

.page-faq .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-faq .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-faq .hero-content h1 {
  color: var(--text-color-light);
  font-size: 3.5em;
  margin-bottom: 20px;
}

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

.page-faq .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq .cta-button:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq .secondary-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-faq .secondary-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-faq .section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--text-color-dark);
}

.page-faq .faq-list {
  margin-top: 30px;
}

.page-faq .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-faq .faq-question:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-faq .faq-question:hover h3 {
  color: var(--text-color-light);
}

.page-faq .faq-question h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.3em;
  transition: color 0.3s ease;
}

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

.page-faq .faq-question:hover .faq-toggle {
  color: var(--secondary-color);
}

.page-faq .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-color-dark);
  border-radius: 0 0 8px 8px;
}

.page-faq .faq-item.active .faq-answer {
  max-height: 1000px; /* Đủ lớn để chứa nội dung */
  padding: 25px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-faq .faq-item.active .faq-question {
  background: var(--primary-color);
  color: var(--text-color-light);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-faq .faq-item.active .faq-question h3 {
  color: var(--text-color-light);
}

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

.page-faq .faq-answer ul,
.page-faq .faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-type: disc;
}

.page-faq .faq-answer ol {
  list-style-type: decimal;
}

.page-faq .faq-answer li {
  margin-bottom: 8px;
}

.page-faq .content-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Final CTA */
.page-faq .final-cta {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-faq .final-cta h3 {
  color: var(--text-color-light);
  font-size: 2.2em;
  margin-bottom: 20px;
}

.page-faq .final-cta p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq .hero-content h1 {
    font-size: 3em;
  }
  .page-faq h2 {
    font-size: 2em;
  }
  .page-faq .faq-question h3 {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-faq .hero-section {
    padding: 40px 15px;
  }
  .page-faq .hero-content h1 {
    font-size: 2.5em;
  }
  .page-faq .hero-content p {
    font-size: 1em;
  }
  .page-faq .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-faq h2 {
    font-size: 1.8em;
  }
  .page-faq .section-description {
    font-size: 0.95em;
  }
  .page-faq .faq-question {
    padding: 15px 20px;
  }
  .page-faq .faq-question h3 {
    font-size: 1.1em;
  }
  .page-faq .faq-toggle {
    font-size: 24px;
  }
  .page-faq .faq-answer {
    padding: 15px 20px;
  }
  .page-faq .final-cta {
    padding: 40px 15px;
  }
  .page-faq .final-cta h3 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .page-faq .hero-content h1 {
    font-size: 2em;
  }
  .page-faq .hero-content p {
    font-size: 0.9em;
  }
  .page-faq .cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-faq h2 {
    font-size: 1.5em;
  }
  .page-faq .faq-question h3 {
    font-size: 1em;
  }
  .page-faq .faq-toggle {
    font-size: 20px;
  }
  .page-faq .faq-answer ul, .page-faq .faq-answer ol {
    margin-left: 15px;
  }
  .page-faq .final-cta h3 {
    font-size: 1.5em;
  }
}