/* style/faq.css */
.page-faq {
  color: #ffffff; /* Sẽ được điều chỉnh bởi hệ thống màu thông minh */
  background-color: #121212; /* Nền tối từ shared.css */
}

/* Đảm bảo khoảng cách với header cố định */
.page-faq__hero-intro-section {
  padding-top: 120px; /* Desktop */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Sử dụng tông màu xanh chủ đạo */
  color: #ffffff;
  text-align: center;
}

.page-faq__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-faq__btn-primary {
  background: #ffc107; /* Màu vàng phụ trợ */
  color: #121212;
  border-color: #ffc107;
}

.page-faq__btn-primary:hover {
  background: #e0a800;
  border-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
  background: none;
  color: #ffffff;
  border-color: #ffffff;
}

.page-faq__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền hơi sáng hơn body để tạo lớp */
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__section-heading {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: #ffc107; /* Màu vàng phụ trợ */
}

/* FAQ item styles */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #2a2a2a; /* Nền cho từng FAQ item */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #4a4a4a;
}

.page-faq__faq-question:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Chuyển dấu cộng thành dấu x */
}

.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-color: #2a2a2a;
  color: #e0e0e0;
  border-left: 1px solid #4a4a4a;
  border-right: 1px solid #4a4a4a;
  border-bottom: 1px solid #4a4a4a;
  border-radius: 0 0 10px 10px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-faq__faq-answer p {
  margin: 0 0 10px 0;
  line-height: 1.7;
  font-size: 16px;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-answer a {
  color: #007bff; /* Màu liên kết trong câu trả lời */
  text-decoration: none;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

.page-faq__contact-cta-section {
  padding: 80px 0;
  background-color: #007bff; /* Màu xanh chủ đạo */
  color: #ffffff;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-intro-section {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .page-faq__main-title {
    font-size: 32px;
  }

  .page-faq__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-faq__faq-list-section {
    padding: 40px 0;
  }

  .page-faq__section-heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-question h3 {
    font-size: 16px;
  }

  .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: 15px 20px !important;
  }

  .page-faq__faq-answer p {
    font-size: 15px;
  }

  .page-faq__contact-cta-section {
    padding: 60px 0;
  }

  /* Mobile image specific styles */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}