/* style/faq.css */

/* Common styles for the page-faq scope */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Assuming body background from shared.css is #000000 */
}

/* Note: If shared.css already applies padding-top: var(--header-offset) to body, 
   do NOT re-apply it here to avoid double padding. 
   Otherwise, apply it to .page-faq or .page-faq__hero-section. */

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

.page-faq__hero-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, #26A9E0, #000000);
  color: #ffffff;
}

.page-faq__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  background-color: #1e87b9; /* Slightly darker primary color */
  transform: translateY(-2px);
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 60px;
}

.page-faq__description-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-faq__introduction-section,
.page-faq__selection-criteria-section,
.page-faq__faq-section,
.page-faq__benefits-section,
.page-faq__conclusion-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for sections */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-faq__text-content {
  flex: 1;
}

.page-faq__text-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-faq__image-container {
  flex: 1;
  text-align: center;
}

.page-faq__image-container--full-width {
    flex: none;
    width: 100%;
    margin-top: 40px;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.page-faq__criteria-grid,
.page-faq__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__card,
.page-faq__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-faq__card:hover,
.page-faq__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-faq__card-title,
.page-faq__benefit-title {
  font-size: 1.5em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 15px;
}

.page-faq__card p,
.page-faq__benefit-card p {
  font-size: 1em;
  color: #e0e0e0;
}

.page-faq__benefit-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
  color: #26A9E0;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus to Minus */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

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

.page-faq__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 3em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__content-wrapper {
    flex-direction: column;
  }
  .page-faq__image-container {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 80px 0;
  }
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-faq__description-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__introduction-section,
  .page-faq__selection-criteria-section,
  .page-faq__faq-section,
  .page-faq__benefits-section,
  .page-faq__conclusion-section {
    padding: 50px 0;
  }
  .page-faq__content-wrapper {
    gap: 30px;
    margin-bottom: 40px;
  }
  .page-faq__text-content p {
    font-size: 1em;
  }
  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__image-container,
  .page-faq__image-container--full-width,
  .page-faq__criteria-grid,
  .page-faq__benefits-grid,
  .page-faq__faq-list,
  .page-faq__cta-wrapper,
  .page-faq__card,
  .page-faq__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-faq__card-title,
  .page-faq__benefit-title {
    font-size: 1.3em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 20px;
  }
  .page-faq__faq-answer p {
    font-size: 0.95em;
  }
  /* Buttons responsive */
  .page-faq__btn-primary {
    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;
  }
  /* Ensure content area does not cause horizontal scroll */
  .page-faq {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__card,
  .page-faq__benefit-card {
    padding: 20px;
  }
}