/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #f8f8f8;
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bbd 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-faq__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Maintain original image colors, but for background effect, grayscale is acceptable */
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 15px;
}

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

/* Content Section */
.page-faq__content-section {
  padding: 40px 0;
  background-color: #ffffff; /* Light background for main content */
  color: #333333;
}

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

/* FAQ Accordion Styles (using <details>) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: #26A9E0;
}

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;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
}

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: #f5f5f5;
  color: #26A9E0;
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: #26A9E0;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

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

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

.page-faq__faq-answer a.page-faq__btn-primary,
.page-faq__faq-answer a.page-faq__btn-secondary {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bbd 100%);
  color: #ffffff;
  text-align: center;
}

.page-faq__cta-content {
  max-width: 900px;
}

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

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

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

/* Buttons */
.page-faq__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-faq__btn-primary:hover {
  background: #d46f06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #26A9E0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-faq__btn-secondary:hover {
  background: #e0f2f7;
  color: #1a7bbd;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
  }
  .page-faq__main-title {
    font-size: 1.8em; /* Adjusted for mobile H1 */
    margin-bottom: 10px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__container {
    padding: 15px;
  }

  /* FAQ Accordion Mobile */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 12px;
  }

  /* CTA Section Mobile */
  .page-faq__cta-section {
    padding: 40px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure all images and containers are responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile responsive */
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}

/* Color contrast safety */
.page-faq__dark-section {
  color: #ffffff;
}
.page-faq__light-bg {
  color: #333333;
}
.page-faq__btn-primary {
  color: #ffffff;
}
.page-faq__btn-secondary {
  color: #26A9E0;
}