/* -------------------------------------------------------------------------- */
/*                            Base & Typography                               */
/* -------------------------------------------------------------------------- */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-faq__section {
  padding: 40px 0;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-faq__description,
.page-faq__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

.page-faq p {
  margin-bottom: 1em;
  color: #FFF3E6;
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, assuming body has padding from shared.css */
  min-height: 500px;
  overflow: hidden;
  background-color: #0D0E12;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop to avoid empty spaces */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(13, 14, 18, 0.7); /* Semi-transparent background for readability */
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content .page-faq__description {
  margin-bottom: 30px;
}

/* -------------------------------------------------------------------------- */
/*                                  Buttons                                   */
/* -------------------------------------------------------------------------- */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A;
  border: 2px solid #A84F0C; /* Border */
  margin-left: 20px;
}

.page-faq__btn-secondary:hover {
  background: #2a2d36;
  color: #FFA53A;
  border-color: #FF8C1A;
  transform: translateY(-2px);
}

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

/* -------------------------------------------------------------------------- */
/*                                FAQ Items                                   */
/* -------------------------------------------------------------------------- */
.page-faq__faq-list {
  margin-top: 40px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6;
  font-weight: 600;
  font-size: 1.15rem;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12; /* Background */
  border-top: 1px solid #A84F0C;
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
}

.page-faq__faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: #FFF3E6;
}

/* -------------------------------------------------------------------------- */
/*                               Image Grid                                   */
/* -------------------------------------------------------------------------- */
.page-faq__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
  justify-items: center;
}

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

.page-faq__image-wrapper {
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive                                 */
/* -------------------------------------------------------------------------- */

/* General Mobile */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section {
    padding: 30px 0;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    padding: 0 10px;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0 10px;
  }

  .page-faq__description,
  .page-faq__section-description {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Hero Section Mobile */
  .page-faq__hero-section {
    min-height: auto;
    padding-top: 10px; /* Ensure small top padding */
  }
  
  .page-faq__hero-image-wrapper {
    max-height: 300px; /* Adjust max height for mobile */
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio for contain */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-content {
    padding: 25px 15px;
    margin-top: -50px; /* Adjust overlap */
  }

  /* Buttons Mobile */
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  /* FAQ Items Mobile */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-faq__faq-qtext {
    font-size: 1rem;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

  .page-faq__faq-answer p {
    font-size: 0.95rem;
  }

  /* Image Grid Mobile */
  .page-faq__image-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
    padding: 0 15px;
  }

  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__image-wrapper {
    padding: 0 15px;
  }
}

/* Desktop/Tablet for larger screens, ensuring image content is not cropped excessively */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    object-fit: contain !important; /* Ensure main image is fully visible */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
  }
}

/* Additional general image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__section,
.page-faq__card,
.page-faq__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}