/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  padding: 80px 0;
  padding-top: calc(80px + var(--header-offset, 120px)); /* Add header offset to top padding */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

/* Why Choose Us Section */
.page-faq__why-choose-us {
  background-color: #000000; /* Dark background for this section, using #000000 as per color rules */
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-faq__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-faq__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark card */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__feature-icon {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-faq__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-faq__faq-section {
  background-color: #FFFFFF; /* Light background for FAQ content */
  color: #333333; /* Dark text for light background */\  padding: 60px 0;
}

.page-faq__faq-section .page-faq__section-title,
.page-faq__faq-section .page-faq__section-description {
  color: #333333;
}

.page-faq__faq-category-title {
  font-size: 1.8em;
  color: #26A9E0; /* Brand primary color for category titles */
  margin-top: 40px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: #f9f9f9; /* Slightly off-white for individual items */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0; /* Lighter background for question */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #e5e5e5;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #26A9E0; /* Brand color for toggle icon */
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* For '-' effect, handled by JS changing textContent */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Adjust padding for collapse/expand */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value for content */
  padding: 15px 25px; /* Restore padding when active */
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
  color: #555555;
}

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

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
  margin-top: 60px;
  border-radius: 12px;
}

.page-faq__cta-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__intro-text,
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 1em;
  }
}

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

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

  .page-faq__hero-section {
    padding: 60px 0;
    padding-top: calc(60px + var(--header-offset, 120px)); /* Adjust for mobile hero section */
  }

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__why-choose-us,
  .page-faq__faq-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.5em;
  }

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

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

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

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content to prevent overflow */
  .page-faq__hero-section,
  .page-faq__why-choose-us,
  .page-faq__faq-section,
  .page-faq__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .page-faq__hero-section > .page-faq__container,
  .page-faq__why-choose-us > .page-faq__container,
  .page-faq__faq-section > .page-faq__container,
  .page-faq__cta-section > .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .page-faq__features-grid,
  .page-faq__feature-item,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.5em;
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.3em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
  }
}

/* Global image filter restriction */
.page-faq img {
  filter: none !important; /* Absolutely no CSS filters to change image colors */
}

/* Ensure content area images are not too small */
.page-faq__faq-section img,
.page-faq__why-choose-us img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow auto width to maintain aspect ratio with min-width */
  height: auto; /* Allow auto height to maintain aspect ratio with min-height */
}