/* style/faq.css */

/* Body background color from shared.css, inferring light background from default settings */
.page-faq {
  color: #333333; /* Dark text for inferred light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color, #FFFFFF);
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #26A9E0; /* Brand color for hero background */
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

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

.page-faq__main-title {
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
}

.page-faq__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F0F0;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
  margin-top: 15px;
}

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

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* Light background for content */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: -50px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
}

.page-faq__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.page-faq__paragraph {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
}

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

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

.page-faq__faq-item {
  background-color: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

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

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate for open state */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  background-color: #F9F9F9;
  border-top: 1px solid #E0E0E0;
  color: #555555;
  font-size: 0.95em;
}

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 15px;
}

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

.page-faq__sub-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-faq__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-faq__list-item {
  margin-bottom: 8px;
}

.page-faq__cta-section {
  text-align: center;
  margin-top: 50px;
  padding: 40px 20px;
  background-color: #26A9E0;
  border-radius: 10px;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__cta-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-faq__btn-secondary {
  display: inline-block;
  background-color: #FFFFFF;
  color: #26A9E0;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  font-size: 1em;
  margin-left: 15px;
}

.page-faq__btn-secondary:hover {
  background-color: #F0F8FF;
  transform: translateY(-2px);
  color: #1a8ac7;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }
  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-faq__intro-text {
    font-size: 1em;
  }
  .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;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }
  .page-faq__cta-section {
    padding: 30px 15px;
  }
  .page-faq__cta-text {
    font-size: 1.2em;
  }
  .page-faq__content-area {
    padding: 20px 15px;
    margin-top: -30px;
  }
  .page-faq__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-faq__sub-title {
    font-size: 1.1em;
  }
  /* All images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All containers with images/content */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__hero-image-wrapper,
  .page-faq__content-area,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  /* Ensure flex items wrap if needed for buttons */
  .page-faq__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-faq__faq-item summary {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    padding: 12px 15px;
  }
  .page-faq__cta-text {
    font-size: 1.1em;
  }
}