/* style/faq.css */
/* Base styles for the FAQ page, scoped to .page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the overall page */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px; /* Space below content before next section */
  background-color: #003366; /* Dark background for hero */
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  display: block;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the image to make text pop */
  filter: none !important; /* Ensure no image filters */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-faq__main-title {
  font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFD700; /* Gold accent for main title */
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

.page-faq__btn-primary {
  background-color: #FFD700; /* Gold accent color */
  color: #003366; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

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

/* Intro Section */
.page-faq__intro-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #003366;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-title--white {
  color: #ffffff;
}

.page-faq__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-faq__intro-image {
  max-width: 800px;
  height: 600px; /* Fixed height for consistency, will be responsive */
  display: block;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
  filter: none !important; /* Ensure no image filters */
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #003366; /* Dark blue background */
  color: #ffffff;
}

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #FFD700; /* Gold for question titles */
  font-weight: 600;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: rgba(0, 0, 0, 0.2); /* Darker background for answer content */
  color: #f0f0f0; /* Light text for answer */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  padding-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__faq-answer a {
  color: #FFD700; /* Gold for links within answers */
  text-decoration: underline;
}

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

.page-faq__content-image {
  max-width: 800px;
  height: 600px; /* Fixed height for consistency, will be responsive */
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  min-width: 200px;
  min-height: 200px;
  filter: none !important; /* Ensure no image filters */
}

/* Bottom CTA Section */
.page-faq__cta-bottom-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  }
  .page-faq__hero-description {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  /* Hero Section Mobile */
  .page-faq__hero-section {
    padding-bottom: 20px;
  }
  .page-faq__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background-color: rgba(0, 51, 102, 0.8); /* Solid background for text on mobile */
  }
  .page-faq__hero-image-wrapper {
    padding-bottom: 75%; /* 4:3 aspect ratio for mobile hero */
  }
  .page-faq__hero-image {
    opacity: 0.6;
  }
  .page-faq__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 10px;
  }
  .page-faq__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 20px;
  }
  .page-faq__cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Mobile */
  .page-faq__intro-section,
  .page-faq__faq-list-section,
  .page-faq__cta-bottom-section {
    padding: 40px 0;
  }

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

  .page-faq__section-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-faq__intro-image,
  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* FAQ Accordion Mobile */
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 1.1rem;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure content containers also adapt */
  .page-faq__intro-section .page-faq__container,
  .page-faq__faq-list-section .page-faq__container,
  .page-faq__cta-bottom-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all images maintain aspect ratio and are not smaller than 200px where applicable */
.page-faq img:not(.page-faq__small-icon) { /* Assuming no small icons on this page, min-size is already set on specific images */
  min-width: 200px;
  min-height: 200px;
}

/* Contrast fixes if needed - these are general examples, actual fix applied dynamically */
.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}