/* style/faq.css */
:root {
  --primary-color: #FF4500;
  --secondary-color: #00CED1;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-dark-card: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
  --dark-bg-1: #0d0d0d; /* Assuming from shared.css */
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default light text for dark body background */
  background-color: var(--dark-bg-1);
}

.page-faq__main-content {
  padding: 60px 20px;
  /* Fixed header spacing */
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

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

.page-faq__title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-faq__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-faq__intro-text .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

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

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: var(--bg-dark-card); /* Semi-transparent white for dark background */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter for question bar */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.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;
  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;
  color: var(--text-light);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker for answer background */
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-light);
}

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

.page-faq__faq-answer li {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-light);
}

.page-faq__faq-answer .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: var(--secondary-color);
}

.page-faq__cta-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__cta-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

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

.page-faq__cta-button:hover {
  background: #00B5B8; /* Slightly darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__main-content {
    padding-top: 100px !important; /* Mobile: Adjust for mobile header height */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__title {
    font-size: 28px;
  }

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

  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-faq__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-faq__faq-answer {
    padding: 0 15px;
  }
  
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }

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

  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__cta-title {
    font-size: 24px;
  }

  .page-faq__cta-description {
    font-size: 16px;
  }

  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }
}