/* 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 body background */
  background-color: #f8f8f8; /* Light background */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

.page-faq__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for prominence */
  line-height: 1.2;
}

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

.page-faq__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for CTA */
  color: #0A192F; /* Main color for button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Content Area Base */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Title and Text */
.page-faq__section-title {
  font-size: 2.5em;
  color: #0A192F; /* Main color for titles */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Auxiliary color for underline */
  border-radius: 2px;
}

.page-faq__section-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-faq__section-text a {
  color: #0A192F;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__section-text a:hover {
  text-decoration: underline;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding-top: 20px;
}

.page-faq__faq-category {
  margin-bottom: 60px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.page-faq__category-title {
  font-size: 2em;
  color: #0A192F; /* Main color for category titles */
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 15px;
  position: relative;
}

.page-faq__category-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-faq__category-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Item Styles */
.page-faq__faq-item {
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 15px;
}

.page-faq__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #0A192F; /* Main color for questions */
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
  color: #FFD700; /* Auxiliary color on hover */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #FFD700; /* Auxiliary color for toggle */
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 1.05em;
}

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

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

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

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #0A192F; /* Main color for dark section */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-faq__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for CTA title */
}

.page-faq__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

/* Image specific styles - ensuring no filters and min size */
.page-faq img {
  border: none;
  max-width: 100%; /* Base responsive image style */
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__category-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
  .page-faq__cta-title {
    font-size: 2.4em;
  }
  .page-faq__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header spacing */
  }
  .page-faq__hero-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important; /* Mobile button adaptation */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }
  .page-faq__content-area {
    padding: 20px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    padding: 0 15px 15px;
  }
  .page-faq__section-text {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-faq__faq-category {
    padding: 20px 15px;
    margin-bottom: 40px;
  }
  .page-faq__category-title {
    font-size: 1.5em;
    padding: 0 15px 15px;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 0;
  }
  .page-faq__faq-answer {
    font-size: 0.95em;
    padding: 0 10px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__cta-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-faq__cta-description {
    font-size: 1em;
    padding: 0 15px;
  }

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-section,
  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__faq-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow from images/content */
  }
}

/* Ensure no filter is used on images */
.page-faq img {
  filter: none !important;
}

/* Content area images minimum display size */
.page-faq__category-image {
  min-width: 200px; /* Enforce min display size for content images */
  min-height: 200px;
}

.page-faq__text-block {
  color: #333333; /* Ensure in most backgrounds readable */
  background: #ffffff; /* Default white background */
}

.page-faq p,
.page-faq li {
  color: #333333; /* Ensure in most backgrounds readable */
}

.page-faq__dark-section {
  background: #0A192F;
  color: #ffffff; /* Force white text */
}

.page-faq__btn-primary {
  background: #0A192F;
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: #0A192F; /* Use brand color ensure contrast */
  border: 2px solid #0A192F;
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-faq__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}