/* style/faq.css */

/* Base styles for the page-faq component */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicit for context */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio, will be responsive */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 8px;
  margin-top: 200px; /* Push content down to avoid overlapping the top part of the image */
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  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;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.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);
  color: #ffffff;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.1rem;
  color: #f0f0f0;
}

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

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

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

/* Section Background Colors */
.page-faq__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #222222;
  color: #ffffff;
}

/* Conclusion Section */
.page-faq__conclusion {
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: 150px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faq__hero-description {
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
  }
  .page-faq__faq-answer {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }
  .page-faq__hero-image {
    height: 400px; /* Adjust height for mobile */
  }
  .page-faq__hero-content {
    margin-top: 80px; /* Adjust margin for mobile */
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 25px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-faq__cta-button,
  .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: 12px 20px !important;
  }

  .page-faq__content-area,
  .page-faq__conclusion {
    padding: 40px 15px !important;
  }

  .page-faq__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }

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

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__conclusion {
    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 */
  }

  /* Specific overrides for CTA buttons within containers */
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-image {
    height: 300px;
  }
  .page-faq__hero-content {
    margin-top: 50px;
  }
  .page-faq__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }
  .page-faq__hero-description {
    font-size: 0.9rem !important;
  }
}