/* style/faq.css */

/* --- Base Styles and Layout --- */
.page-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

/* Responsive padding for main content sections */
.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-faq__hero-section {
  background: linear-gradient(135deg, #007bff, #0056b3); /* Darker blue gradient */
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
  font-size: 1.2em;
  line-height: 1.8;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-faq__hero-description a {
  color: #ffc107; /* Accent color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-faq__hero-description a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Content Area --- */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
  color: #f0f0f0;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #ffc107; /* Accent color for main section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__illustration-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__general-illustration {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* --- FAQ List --- */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a; /* Darker card background for contrast */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.page-faq__faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Question style */
.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a; /* Slightly lighter than item background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; /* For top corners */
  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-radius: 8px 8px 0 0; /* Rounded top, flat bottom when active */
  background: #3a3a3a;
}

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

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

/* Toggle icon */
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107; /* Accent color for toggle */
  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;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff;
  background-color: #007bff;
  transform: rotate(180deg); /* Rotate for minus sign */
}

/* Answer style */
.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: #e0e0e0; /* Slightly lighter than main text for answer */
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Ensure content expands fully */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-faq__faq-answer a {
  color: #ffc107; /* Accent color for links in answer */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #007bff;
  text-decoration: underline;
}

.page-faq__faq-answer ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: #e0e0e0;
}

.page-faq__faq-answer strong {
  color: #ffffff;
}

/* --- Call to Action Section --- */
.page-faq__cta-section {
  background: linear-gradient(135deg, #0056b3, #007bff); /* Blue gradient, slightly darker */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffc107; /* Accent color */
}

.page-faq__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
  color: #e0e0e0;
}

.page-faq__cta-description a {
  color: #ffc107;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-faq__cta-description a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-faq__btn-primary {
  display: inline-block;
  background: #ffc107; /* Accent color for button */
  color: #333333; /* Dark text for light button */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  background: #e0a800; /* Slightly darker yellow on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- General Link Styling for Dark Backgrounds --- */
.page-faq__text-link {
  color: #ffc107;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Image Responsive Styles (Crucial for mobile) --- */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__cta-description {
    font-size: 1.1em;
  }
  .page-faq__btn-primary {
    padding: 12px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px; /* Spacing for fixed header on mobile */
    font-size: 15px;
    line-height: 1.6;
  }

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important; /* Ensure container respects full width */
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__content-area {
    padding: 40px 0;
  }

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

  .page-faq__illustration-wrapper {
    margin-bottom: 30px;
  }

  .page-faq__general-illustration {
    border-radius: 8px;
  }

  .page-faq__faq-item {
    margin-bottom: 10px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap; /* Allow question and toggle to wrap */
  }

  .page-faq__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px); /* Adjust width to make space for toggle */
  }

  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .page-faq__faq-answer {
    padding: 0 20px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

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

  .page-faq__cta-title {
    font-size: 1.8em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }

  .page-faq__btn-primary {
    padding: 10px 25px;
    font-size: 1em;
  }

  /* Force responsive images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question h3 {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
}