/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure body background is respected */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb0 100%); /* Brand color gradient */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Minimum height for hero */
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Content Area */
.page-faq__content-area {
  background-color: #ffffff; /* Light background for content */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for main titles */
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07; /* Accent color */
  border-radius: 2px;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For <summary> tag */
  user-select: none;
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #e6e6e6;
  border-bottom: 1px solid #d0d0d0;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #EA7C07;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__image-wrapper {
  margin: 20px 0;
  text-align: center;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }

  .page-faq__intro-text {
    font-size: 1.1em;
  }

  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific override */
  }

  .page-faq__main-title {
    font-size: 2.2em;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-area {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

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

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

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__image-wrapper,
  .page-faq__faq-item,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific adjustment for cta buttons in mobile section */
  .page-faq__cta-buttons--mobile {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
  }
}

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