/* style/faq.css */
.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #0a0a0a; /* Ensure a dark background for the hero section */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-faq__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
  background: darken(#EA7C07, 10%);
  border-color: darken(#EA7C07, 10%);
}

.page-faq__btn-secondary {
  background: #26A9E0; /* Main brand color for secondary CTA */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background: darken(#26A9E0, 10%);
  border-color: darken(#26A9E0, 10%);
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay */
  filter: brightness(0.7); /* Darken image for better text contrast */
}

.page-faq__faq-list-section {
  background-color: #0a0a0a; /* Dark background for FAQ content */
  padding: 60px 0;
}

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

.page-faq__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__faq-category {
  margin-bottom: 50px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for categories */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__category-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 15px;
}

.page-faq__category-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 30px auto;
  object-fit: cover;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Even lighter for individual items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: #26A9E0; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: darken(#26A9E0, 10%);
}

.page-faq__question-text {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-top: 50px;
}

.page-faq__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__intro-text {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__category-title {
    font-size: 1.4em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 15px;
  }
  .page-faq__cta-button {
    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__cta-section {
    padding: 30px 15px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  
  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__category-image-wrapper,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Content area images - enforce min size if not already large */
  .page-faq__faq-list-section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* Ensure no filter is used on images */
  .page-faq img {
    filter: none !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__category-title {
    font-size: 1.2em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
  }
  .page-faq__intro-text {
    font-size: 0.9em;
  }
}