/* style/faq.css */

/* Base styles for the page-faq scope */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 20px;
}

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

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
  color: #ffffff;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

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

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 25px;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for main content */
  color: #333333; /* Dark text for light background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -40px; /* Overlap with hero section slightly */
  position: relative;
  z-index: 2;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: #f0f8ff; /* Light blue when open */
  border-color: #26A9E0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-faq__faq-question:hover {
  background-color: #e6f7ff;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  color: #26A9E0;
  background-color: #e6f7ff;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 20px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for consistency */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
}

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 500;
}

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

.page-faq__image-in-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 800px; /* Example max-width for content images */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.page-faq__additional-info {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  max-width: 1200px;
  margin: 40px auto;
  box-sizing: border-box;
}

.page-faq__additional-info .page-faq__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-faq__additional-info .page-faq__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__additional-info .page-faq__description a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-faq__faq-question {
    font-size: 1.05rem;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 18px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-faq__description {
    font-size: 1rem;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-faq__content-area {
    padding: 30px 15px;
    margin-top: -20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 25px;
  }
  .page-faq__intro-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }
  .page-faq__faq-answer {
    padding: 0 18px 15px;
  }
  .page-faq__image-in-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-faq__additional-info {
    padding: 40px 15px;
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All containers with images */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-faq__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  .page-faq__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 12px;
  }
}