/* style/faq.css */

/* Body background is default white, so text should be dark */
.page-faq {
  color: #333333; /* Default dark text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #f5f5f5;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  font-weight: 700;
  color: #26A9E0; /* Primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c2;
  border-color: #1e87c2;
}

.page-faq__inline-btn {
  background-color: #EA7C07; /* Login color for inline CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 15px;
}

.page-faq__inline-btn:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

.page-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  user-select: none; /* Prevent text selection on toggle */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #f0f0f0;
  border-bottom: none;
}

.page-faq__faq-title {
  flex-grow: 1;
  text-align: left;
  padding-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.8;
  border-top: 1px solid #f0f0f0;
}

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

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

.page-faq__dark-section {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #ffffff; /* White text for contrast */
  text-align: center;
}

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

.page-faq__cta-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}

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

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__inline-btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-faq__content-area,
  .page-faq__cta-content {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__faq-question {
    padding: 15px;
    font-size: 1.05em;
  }

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

  .page-faq__cta-title {
    font-size: 1.6em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }
  
  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure no double padding from specific sections */
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-faq__hero-content .page-faq__cta-buttons {
    padding: 0 15px; /* Apply padding to the button container if needed */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em !important;
  }
  .page-faq__section-title {
    font-size: 1.4em;
  }
  .page-faq__cta-title {
    font-size: 1.4em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
}