/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly setting for clarity */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary color for dark background */
  overflow: hidden;
}

.page-faq__hero-section .page-faq__container {
  z-index: 10;
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2; /* Subtle overlay for background image */
}

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

/* Section Titles */
.page-faq__section-title,
.page-faq__cta-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for accordion */
}

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

.page-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

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

.page-faq__faq-question:hover {
  background-color: #eaf7ff; /* Lighter shade of brand color for hover */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* CTA Section */
.page-faq__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-faq__cta-content {
  z-index: 10;
  position: relative;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15; /* Subtle overlay for background image */
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
}

.page-faq__btn-primary:hover {
  background-color: #d16d06;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 0;
  }

  .page-faq__hero-section .page-faq__container {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
  }

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

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

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

  .page-faq__accordion-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

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

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

  .page-faq__hero-image-wrapper,
  .page-faq__cta-image-wrapper,
  .page-faq__container,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Buttons responsive */
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  /* If multiple buttons in a group, stack them */
  .page-faq__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between elements */
  }
}

/* Ensure color contrast for dark background elements */
.page-faq__dark-bg {
  color: #ffffff; /* Deep background should have light text */
}

/* Ensure color contrast for light background elements */
.page-faq__light-bg {
  color: #333333; /* Light background should have dark text */
}

/* Specific button text colors are handled by their background */
.page-faq__btn-primary {
  color: #ffffff; /* Always white text on primary button */
}
.page-faq__btn-secondary {
  color: #26A9E0; /* Brand color text on secondary button */
}