/* style/faq.css */

/* Body background color is handled by shared.css var(--black-color) */
/* Assuming var(--black-color) is dark, main text color for .page-faq will be light */
.page-faq {
  color: #ffffff; /* Default text color for the page content */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Let body handle the background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more at bottom */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-faq__main-title {
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed font-size as per rule, relying on default H1 size and responsive scaling */
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  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;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

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

.page-faq__section-title {
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  font-weight: 700;
}

.page-faq__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #555555;
}

.page-faq__faq-category {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-faq__faq-item-group {
  width: 100%;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  font-size: 1.1em;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: #eef;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent summary click from being overridden by span */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
  pointer-events: none; /* Prevent summary click from being overridden by span */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

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

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

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

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.page-faq__cta-section {
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF; /* White text for contrast */
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-faq__cta-description a {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 700px;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__category-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__hero-content {
    padding: 15px;
    position: static;
    transform: none;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker for mobile */
  }
  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    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-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__category-title {
    font-size: 1.4em;
  }
  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
  /* Mobile image responsiveness */
  .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__cta-section,
  .page-faq__faq-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-section {
    padding-top: 10px !important;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.5em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__category-title {
    font-size: 1.2em;
  }
  .page-faq__faq-item summary {
    font-size: 0.95em;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
}