/* style/faq.css */

/* Base styles for the page-faq container */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so use light text */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and text */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* H1 font size with clamp */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

/* General Section Styling */
.page-faq__section {
  padding: 60px 0;
  box-sizing: border-box;
}

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

.page-faq__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for FAQ list */
  color: #ffffff;
}

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

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

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

.page-faq__content-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

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

.page-faq__image-block {
  flex: 0 0 400px; /* Fixed width for image block on desktop */
  max-width: 400px;
  text-align: center;
}

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

.page-faq__sub-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-faq p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-faq ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-faq li {
  margin-bottom: 8px;
  color: #e0e0e0;
}

.page-faq a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq a:hover {
  text-decoration: underline;
}

.page-faq .highlight-keyword {
  color: #26A9E0;
  font-weight: bold;
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* FAQ List Specific Styles */
.page-faq__faq-list-section {
  padding-bottom: 80px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  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: 600;
  cursor: pointer;
  color: #FFFFFF;
  position: relative;
  list-style: none; /* Remove default summary marker */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default Webkit details marker */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate + to x */
}

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

.page-faq__faq-answer p {
  margin-bottom: 0; /* Remove extra margin for last paragraph in answer */
}

/* CTA Section */
.page-faq__cta-section {
  background-color: #0a0a0a;
  text-align: center;
  padding: 80px 0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-faq__image-block {
    flex: none;
    max-width: 100%;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__sub-title {
    font-size: 1.3em;
  }
  .page-faq p, .page-faq li {
    font-size: 0.95em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image, video, container responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by container for general content */
    /* padding-right: 15px; */
    overflow: hidden !important; /* Prevent overflow */
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    padding-top: 10px;
  }
  .page-faq__main-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
}

/* Ensure no filter on images */
.page-faq img {
  filter: none !important;
}