/* style/faq.css */
:root {
  --primary-color: #FF4500; /* Cam đỏ năng động */
  --secondary-color: #00BFFF; /* Xanh dương chuyên nghiệp */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-card: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.08);
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--dark-bg-1); /* This is from shared.css */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 60px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #FF6347 100%);
  color: var(--text-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-faq__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  background: #0099e6;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.page-faq__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
}

.page-faq__questions-section {
  padding: 80px 20px;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-dark);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

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

.page-faq__faq-question:hover {
  background: var(--background-light);
  border-color: var(--secondary-color);
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-dark);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--background-card);
  color: var(--text-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 25px !important;
  opacity: 1;
  background: var(--background-card);
  border: 1px solid var(--primary-color);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: var(--text-dark);
}

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

.page-faq__download-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__download-button:hover {
  background: #e63900;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-bottom-section {
  padding: 80px 20px;
  background: linear-gradient(45deg, var(--secondary-color) 0%, #4682B4 100%);
  color: var(--text-light);
  text-align: center;
}

.page-faq__cta-bottom-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-bottom-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button--large {
  padding: 18px 45px;
  font-size: 1.25em;
  background: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-faq__cta-button--large:hover {
  background: #e63900;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__cta-bottom-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 100px; /* Adjust for mobile fixed header */
    padding-bottom: 40px;
    min-height: 300px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-faq__questions-section {
    padding: 60px 15px;
  }
  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 20px !important;
  }
  .page-faq__faq-answer p, .page-faq__faq-answer li {
    font-size: 0.95em;
  }

  .page-faq__faq-image {
    margin: 15px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-faq__download-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px;
    font-size: 0.95em;
  }

  .page-faq__cta-bottom-section {
    padding: 60px 15px;
  }
  .page-faq__cta-bottom-title {
    font-size: 2em;
  }
  .page-faq__cta-bottom-description {
    font-size: 1em;
  }
  .page-faq__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  /* Ensure all containers are responsive */
  .page-faq__hero-container,
  .page-faq__container,
  .page-faq__cta-buttons,
  .page-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-faq__hero-section,
  .page-faq__questions-section,
  .page-faq__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-bottom-title {
    font-size: 1.8em;
  }
  .page-faq__cta-button {
    max-width: 100%;
  }
  .page-faq__cta-button--large {
    max-width: 100%;
  }
}