/* style/faq.css */
.page-faq {
  color: #ffffff; /* Dark body background #1a1a2e, so use light text */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding, body handles --header-offset */
  background-color: #1a1a2e; /* Match body background for seamless look */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px; /* Limit image width to content area */
  border-radius: 10px;
  object-fit: cover;
}

.page-faq__hero-content {
  text-align: center;
  padding: 30px 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-faq__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-faq__section-spacing {
  padding: 60px 20px;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a2e; /* Match body background */
  color: #ffffff;
}

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question header */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #26A9E0; /* Brand color when open */
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-item[open] .page-faq__faq-question:hover {
  background-color: #26A9E0; /* Keep brand color when open and hovered */
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #ffffff;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.03);
}

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

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin: 15px 0;
  padding-left: 25px;
}

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

.page-faq__cta-section {
  background-color: #26A9E0; /* Main brand color for CTA background */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-faq__btn-tertiary:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-faq__hero-content {
    padding: 20px 0;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-faq__intro-text {
    font-size: 1rem;
  }

  .page-faq__section-spacing {
    padding: 40px 15px;
  }

  .page-faq__content-area,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }

  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-faq__cta-title {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  }

  .page-faq__cta-description {
    font-size: 1rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-tertiary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}