/* style/faq.css */

/* Base styles for the FAQ page, ensuring light text on dark body background */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background from shared.css */
}

/* Ensure proper padding for main content, body handles header offset */
.page-faq__hero-section,
.page-faq__content-area,
.page-faq__cta-section {
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%; /* Ensure full width sections */
}

/* Small top padding for the first section, body handles header offset */
.page-faq__hero-section {
  padding-top: 10px; /* Small top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-faq__hero-content {
  position: relative; /* Ensure content is above image if needed, but not overlaying */
  z-index: 2;
  max-width: 800px;
  margin-top: 30px; /* Space between image and text */
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-faq__section-title,
.page-faq__cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem); /* Responsive font size */
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-faq__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #26A9E0; /* Primary color 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: #1a8cc4; /* Slightly darker on hover */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #1a8cc4;
}

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

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

.page-faq__faq-answer {
  padding: 25px;
  font-size: 1rem;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for answer content */
}

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

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

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

/* Button styles */
.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

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

/* Dark background sections for contrast */
.page-faq__dark-section {
  background: #1a1a1a; /* Slightly lighter than body background for subtle depth */
  color: #ffffff;
}

/* Specific details summary styling for cross-browser compatibility */
.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 */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 700px;
  }
  .page-faq__faq-list {
    max-width: 768px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section {
    padding: 40px 15px !important; /* Adjust padding for mobile */
  }

  .page-faq__hero-content {
    margin-top: 20px;
  }

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

  .page-faq__description {
    font-size: 1rem;
  }

  .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: 1.1rem;
    padding: 15px 20px;
  }

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

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-faq__hero-section,
  .page-faq__faq-answer,
  .page-faq__cta-section,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* 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;
    padding-right: 15px;
  }
  
  .page-faq__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: clamp(1.6rem, 9vw, 2rem);
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    padding: 15px;
    font-size: 0.9rem;
  }
  .page-faq__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}