/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #FFFFFF; /* White text for dark background */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper takes full width */
  margin-bottom: 20px; /* Space between image and content */
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-faq__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

/* CTA Buttons in Hero */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 400px; /* Limit width for desktop */
  margin: 0 auto; /* Center buttons */
  box-sizing: border-box;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background-color: #d16b06;
}

.page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color for text */
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background-color: #e0e0e0;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #FFFFFF; /* Explicitly white background for content */
  color: #333333; /* Dark text for white background */
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #26A9E0; /* Primary brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

/* FAQ List */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For proper animation if using JS for expand/collapse */
  transition: all 0.3s ease;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff; /* Question background */
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for <summary> */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for <summary> in Webkit */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  margin-left: 20px;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #f9f9f9;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 10px;
  list-style-position: inside;
}

.page-faq__faq-answer ul li,
.page-faq__faq-answer ol li {
  margin-bottom: 5px;
}

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

.page-faq__faq-answer a:hover {
  color: #1a7bb5;
}

/* Images within FAQ answers */
.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* Bottom CTA */
.page-faq__cta-bottom {
  text-align: center;
  padding: 40px 20px;
  background-color: #f0f8ff; /* Light blue background */
  border-radius: 10px;
  margin-top: 50px;
  box-sizing: border-box;
}

.page-faq__cta-title {
  font-size: clamp(1.5em, 2.5vw, 2em);
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-faq__cta-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding */
  }

  .page-faq__hero-image-wrapper {
    margin-bottom: 15px;
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
  }

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

  .page-faq__content-area {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

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

  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__faq-list,
  .page-faq__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }

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

  .page-faq__cta-title {
    font-size: 1.3em;
  }
}