/* style/faq.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-gray: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Assuming body background is dark, based on shared.css and design style */
  background-color: var(--dark-bg-1); /* This will be from shared.css */
}

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

/* Fixed Nav Bar Spacing */
.page-faq__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 40px;
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-faq__main-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__intro-image-wrapper {
  text-align: center;
  margin-top: 30px;
}

.page-faq__intro-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-faq__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
}

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

.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 15px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05); /* Light translucent background for answers on dark page */
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.7;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--primary-color); /* Darker background for question */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-faq__faq-question:hover {
  background-color: #004488; /* Slightly lighter primary color on hover */
  border-color: rgba(255, 255, 255, 0.2);
}

.page-faq__faq-question:active {
  background-color: #002244; /* Slightly darker primary color on active */
}

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

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle */
  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: 30px;
  height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Visual change for minus sign */
}

.page-faq__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__faq-answer a:hover {
  color: #FFC107;
}

.page-faq__content-image-wrapper {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 32px;
  }

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

  .page-faq__section-title {
    font-size: 28px;
  }

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

@media (max-width: 768px) {
  .page-faq__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 30px;
  }

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

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

  .page-faq__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

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

  .page-faq__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__intro-section,
  .page-faq__faq-list-section,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__faq-question,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}