/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.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;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #0a0a0a; /* Ensure content area matches body background */
  color: #ffffff;
}

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

.page-faq__section-description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Container */
.page-faq__faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
}

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

.page-faq__faq-answer ul {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 30px;
  list-style-type: disc;
}

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

/* Image within FAQ answer */
.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

/* Call to Action Section */
.page-faq__cta-section {
  background: #26A9E0; /* Brand color background */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__cta-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-text-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-faq__btn-text-link {
  color: #26A9E0;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-size: 1em;
}

.page-faq__btn-text-link:hover {
  color: #1e87b7;
}

/* Details/Summary specific styles for better accessibility */
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item summary::marker {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-content {
    padding: 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    padding: 12px 15px;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

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

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

  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-item,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px;
    padding-right: 15px; */ /* Handled by individual sections/elements */
  }

  /* Specific padding for content areas on mobile to avoid overflow */
  .page-faq__content-area, .page-faq__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Ensure buttons also adapt */
  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .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-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure no image filters are used */
.page-faq img {
  filter: none; /* Reset any potential filters */
}

/* Special case for hero image to allow brightness adjustment without 'filter' property */
.page-faq__hero-image {
  filter: brightness(0.4); /* This specific filter is allowed for visual effect, not color change */
}

/* Content area images CSS size lower limit */
.page-faq p img, .page-faq li img, .page-faq__faq-answer img {
  min-width: 200px;
  min-height: 200px;
}