/* style/faq.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
  --button-login-color: #EA7C07;
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is light, so use dark text */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

/* Hero Title Section - Not a full hero image, but a prominent title area */
.page-faq__hero-title-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--background-light);
  border-bottom: 1px solid var(--border-color);
}

.page-faq__main-title {
  font-size: 3em; /* Use clamp if needed, but for H1, this is fine for desktop */
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-dark);
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-faq__cta-button:hover {
  background: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button--secondary {
  background: var(--button-login-color);
  margin-left: 15px;
}

.page-faq__cta-button--secondary:hover {
  background: #c76706;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.page-faq__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

/* FAQ Item styles (using <details> and <summary>) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-dark);
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: var(--background-light);
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: var(--button-login-color);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: var(--background-light);
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

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

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

.page-faq__answer-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 6px;
  margin: 20px 0;
  object-fit: cover;
}

.page-faq__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-faq__text-link:hover {
  color: #1e87c0;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-faq__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-faq__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-faq__btn-secondary {
  background: var(--button-login-color);
  color: var(--text-light);
  margin-left: 10px;
}

.page-faq__btn-secondary:hover {
  background: #c76706;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-faq__call-to-action-bottom {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--background-light);
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  border-radius: 8px;
}

.page-faq__cta-text {
  font-size: 1.2em;
  margin-bottom: 25px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-title-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-top: 15px;
    margin-left: 0 !important; /* Reset margin for stacking */
  }

  .page-faq__faq-list-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-qtext {
    font-size: 1em;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }

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

  .page-faq__answer-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-top: 15px;
    margin-left: 0 !important;
  }

  .page-faq__call-to-action-bottom {
    padding: 30px 15px;
  }

  .page-faq__cta-text {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure all img tags are responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers with images/buttons are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.7em;
  }
}