/* style/faq.css */

/* General styling 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; /* Main content background will be transparent to show body's #0a0a0a */
}

/* 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: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-faq__hero-content {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  color: #ffffff; /* Ensure text is white on dark background */
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word wrapping */
}

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

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

.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__small-btn {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #f0f0f0; /* Light text for dark background */
}

.page-faq__dark-section {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color for dark section background */
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-faq__image-content {
  width: 100%;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  max-width: 800px; /* Example max width */
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
  color: #ffffff; /* Light text for dark background */
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff; /* White text on dark item background */
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question header */
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* Hide default details marker */
.page-faq__faq-item > summary {
  list-style: none;
}
.page-faq__faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  color: #ffffff; /* Ensure text is white */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle icon */
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0; /* Light text for answer */
}

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

/* CTA Section at bottom */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #26A9E0; /* Brand color background for CTA */
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-faq__small-btn {
    padding: 10px 20px !important;
    font-size: 0.9em !important;
  }
  .page-faq__content-area,
  .page-faq__dark-section,
  .page-faq__faq-section,
  .page-faq__cta-section {
    padding: 30px 15px;
  }
  .page-faq__container {
    padding: 0 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__text-block {
    font-size: 0.95em;
  }
  /* Ensure all images are responsive and do not overflow */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    min-width: 200px; /* Ensure minimum size is maintained */
    min-height: 200px; /* Ensure minimum size is maintained */
  }
  .page-faq__hero-image-wrapper,
  .page-faq__image-content,
  .page-faq__container,
  .page-faq__content-area,
  .page-faq__dark-section,
  .page-faq__faq-section,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
}