/* style/faq.css */

/* Base styles */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body handles background color */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text contrast */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0d0d0d; /* Slightly lighter dark background for content */
  color: #ffffff;
}

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

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

/* FAQ List */
.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;
  color: #ffffff;
  transition: all 0.3s ease;
}

.page-faq__faq-item:hover {
  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-weight: 600;
  font-size: 1.2em;
  cursor: pointer;
  color: #26A9E0;
  user-select: none;
}

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

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

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

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

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

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

.page-faq__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-faq__image-in-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  display: block;
  max-width: 600px; /* Example max width for content images */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__link-btn {
  display: inline-block;
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-faq__link-btn:hover {
  background-color: #c46406;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

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

  .page-faq__content-area {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

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

  .page-faq__faq-answer {
    padding: 0 20px 18px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-faq__description {
    font-size: 0.95em;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }

  .page-faq__section-intro {
    font-size: 0.95em;
  }

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

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__image-in-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__faq-list {
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__faq-answer ul {
    margin-left: 15px;
  }
}