/* style/faq.css */

/* Base styles for the page-faq scope */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-faq__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for this section */
  color: #ffffff;
}

.page-faq__hero-content {
  max-width: 800px;
  z-index: 1;
  margin-bottom: 30px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

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

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
  z-index: 0;
}

/* Section Titles */
.page-faq__section-title, .page-faq__cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or similar for open state */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-faq__contact-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

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

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Ensure dark background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.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;
  flex-wrap: wrap;
}

.page-faq__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__accordion-section,
  .page-faq__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-faq__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__contact-buttons,
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Image and video responsive rules */
  .page-faq img,
  .page-faq video,
  .page-faq__app-image,
  .page-faq__hero-image,
  .page-faq__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .page-faq__hero-section,
  .page-faq__accordion-section,
  .page-faq__cta-section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row; /* Desktop: image and content side by side or stacked based on design */
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 40px;
  }

  .page-faq__hero-content {
    flex: 1;
    margin-bottom: 0;
  }

  .page-faq__hero-image {
    flex: 1;
    margin-top: 0;
  }

  .page-faq__hero-section .page-faq__hero-content + .page-faq__hero-image {
    order: 2; /* Ensure image comes after content for desktop if desired, but prompt says image above text */
  }

  .page-faq__hero-section {
    flex-direction: column; /* Revert to column for image above text */
  }

  .page-faq__hero-content {
    margin-bottom: 40px;
  }
}