/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: var(--black-color); /* Inherited from shared.css, assumed dark */
}

.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 bottom padding */
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any background elements */
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* Explicitly set light background for content */
  color: #333333; /* Dark text for light background */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  margin-top: -30px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color */
  text-align: center;
}

.page-faq__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  color: #333333;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

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

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

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

.page-faq__contact-us-section {
  text-align: center;
  padding: 60px 20px 40px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border-radius: 8px;
  margin-top: 40px;
}

.page-faq__contact-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

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

/* Ensure all images in content area are responsive and not too small */
.page-faq p img,
.page-faq li img,
.page-faq .page-faq__faq-answer img {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* or cover, depending on desired crop */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 10px 20px 50px;
  }
  .page-faq__hero-content {
    max-width: 768px;
  }
  .page-faq__content-area {
    padding: 50px 20px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__hero-content {
    max-width: 100%;
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-faq__hero-description {
    font-size: 1rem;
  }
  .page-faq__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
  }
  .page-faq__content-area {
    padding: 40px 15px;
    margin-top: -20px;
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-faq__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 12px 18px;
  }
  .page-faq__faq-answer {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .page-faq__contact-us-section {
    padding: 40px 15px 30px;
  }
  .page-faq__contact-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image-wrapper,
  .page-faq__faq-answer,
  .page-faq__content-area,
  .page-faq__contact-us-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__contact-us-section .page-faq__btn-primary {
    width: auto !important;
    max-width: 100% !important;
  }
}