/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: transparent; /* Rely on shared.css for body background */
}

.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; /* Default for mobile, will change for desktop */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #0a0a0a; /* Match body background for consistency */
}

.page-faq__hero-content {
  max-width: 800px;
  margin-bottom: 30px; /* Space between content and image on mobile/column layout */
  z-index: 1;
}

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

.page-faq__description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for body text on dark background */
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensure container takes full width for button stacking */
  max-width: 400px;
  margin: 0 auto;
}

.page-faq__cta-buttons--inline {
  flex-direction: row; /* For horizontal buttons within content */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  max-width: none; /* Remove max-width for inline buttons */
  gap: 10px;
  margin-top: 20px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%; /* Important for mobile responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 30px; /* Space between image and content on mobile/column layout */
  display: block;
}

/* Content Section (FAQ List) */
.page-faq__content-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for WebKit */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

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

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

.page-faq__faq-item[open] .page-faq__faq-question {
  border-bottom: none; /* No border when open */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.0em;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Separator for answer content */
}

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

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

/* Contact CTA Section */
.page-faq__contact-cta {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-faq__contact-content {
  max-width: 800px;
  margin-bottom: 0; /* Reset margin for flex layout */
}

.page-faq__contact-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Global image styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
  .page-faq__hero-section {
    flex-direction: row; /* Desktop: image right, content left */
    text-align: left;
    gap: 50px;
    padding: 80px 40px;
  }

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

  .page-faq__hero-image {
    flex: 1;
    margin-top: 0;
    max-width: 50%; /* Adjust image width */
  }

  .page-faq__cta-buttons {
    flex-direction: row; /* Desktop: horizontal buttons */
    max-width: none;
    justify-content: flex-start;
    margin: 0; /* Reset margin for flex start */
  }

  .page-faq__contact-cta {
    flex-direction: row;
    gap: 50px;
    padding: 80px 40px;
  }

  .page-faq__contact-content {
    flex: 1;
    text-align: left;
  }

  .page-faq__contact-image {
    flex: 1;
    max-width: 50%;
  }

  .page-faq__contact-cta .page-faq__cta-buttons {
    justify-content: flex-start;
  }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__contact-cta {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .page-faq__hero-content,
  .page-faq__contact-content {
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

  .page-faq__section-title {
    font-size: 1.8em; /* Smaller H2 for mobile */
  }

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  .page-faq__cta-button,
  .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; /* Add some padding for text within buttons */
    padding-right: 15px;
  }
  
  .page-faq__cta-buttons {
    flex-direction: column !important; /* Force column for mobile buttons */
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__cta-buttons--inline {
    flex-direction: column !important; /* Stack inline buttons on mobile */
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

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

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