/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

/* Hero Section / Main Title Section */
.page-faq__hero-section {
  background-color: #FFFFFF; /* Light background for the hero section */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
}

.page-faq__hero-content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.page-faq__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

/* CTA Buttons */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c2;
  border-color: #1e87c2;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  background-color: #26A9E0; /* Brand primary color for FAQ background */
  padding: 60px 0;
  color: #FFFFFF; /* White text for dark background */
}

.page-faq__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
  border-radius: 8px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  position: relative;
  outline: none;
}

.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;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFFFF;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0; /* Slightly off-white for body text */
}

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

/* Contact Promo Section */
.page-faq__contact-promo {
  background-color: #FFFFFF; /* White background */
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
}

.page-faq__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-faq__contact-content {
  flex: 1;
}

.page-faq__contact-title {
  font-size: 2em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-faq__contact-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-faq__contact-image {
  flex: 1;
  text-align: center;
}

.page-faq__contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }

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

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

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

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

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

  .page-faq__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-faq__contact-content {
    order: 2; /* Content below image on smaller screens */
  }

  .page-faq__contact-image {
    order: 1; /* Image above content on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }
  .page-faq__hero-content-wrapper {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em) !important;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
  }
  .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; /* Ensure padding inside button */
    padding-right: 15px;
  }

  /* FAQ List Section */
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__faq-item summary {
    padding: 14px 18px;
    font-size: 0.95em;
  }
  .page-faq__faq-answer {
    padding: 0 18px 15px;
    font-size: 0.9em;
  }

  /* Contact Promo Section */
  .page-faq__contact-promo {
    padding: 40px 0;
  }
  .page-faq__container--flex {
    padding: 0 15px;
    gap: 20px;
  }
  .page-faq__contact-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  .page-faq__contact-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-faq__contact-image {
    margin-bottom: 20px;
  }

  /* General Image & Container rules for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content-wrapper,
  .page-faq__faq-items,
  .page-faq__contact-content,
  .page-faq__contact-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove padding for the container itself if its child elements already have it */
  .page-faq__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}