/* style/faq.css */

/* Base styles for the FAQ page, ensuring light text on dark body background */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
  text-align: center;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Brand color for H1, good contrast on dark background */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: #f0f0f0; /* Slightly off-white for body text */
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
  width: auto; /* Default width */
}

.page-faq__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color text */
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1000px; /* Slightly narrower for readability */
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0; /* Brand color for H2 */
  text-align: center;
  margin-bottom: 30px;
}

.page-faq__intro-text {
  font-size: 1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-faq__sub-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #ffffff; /* White text for H3 */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(38, 169, 224, 0.3); /* Subtle brand color underline */
  padding-bottom: 10px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For details tag transition */
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff; /* White text for question */
  position: relative;
  outline: none; /* Remove outline on focus */
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for WebKit browsers */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 25px;
  text-align: center;
  color: #26A9E0; /* Brand color for toggle icon */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #e0e0e0; /* Slightly lighter than main text for answers */
}

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

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

.page-faq__text-link {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}

.page-faq__text-link:hover {
  color: #1a8cc7;
}

.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
}

/* CTA Bottom Section */
.page-faq__cta-bottom {
  background-color: rgba(38, 169, 224, 0.1); /* Light transparent brand color background */
  padding: 60px 20px;
  text-align: center;
  margin-top: 50px;
  box-sizing: border-box;
}

.page-faq__cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}


/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-faq__hero-image-wrapper,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-faq__main-title {
    font-size: 2rem;
  }

  .page-faq__section-title {
    font-size: 1.8rem;
  }

  .page-faq__sub-section-title {
    font-size: 1.3rem;
  }

  .page-faq__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
}

/* Ensure no content causes horizontal scroll */
.page-faq {
  overflow-x: hidden;
}

/* Specific content area image sizing */
.page-faq__faq-answer .page-faq__image-content {
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Ensure content area images are not tiny */
.page-faq__content-area img {
  width: 100%; /* Default to full width of its container */
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  box-sizing: border-box;
}

/* Ensure contrast for text links inside various elements */
.page-faq__text-link {
  color: #26A9E0; /* Brand color */
  text-decoration: underline;
}
.page-faq__text-link:hover {
  color: #1a8cc7; /* Darker brand color on hover */
}

/* Ensure H1 font size constraints are met */
.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Example: 2.5rem on small screens, 3.5rem on large, 5vw in between */
}