:root {
  --primary-color: #FF8C1A;
  --auxiliary-color: #FFA53A;
  --card-bg-color: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

/* Base styles for the page content, ensuring text is light on dark background */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden; /* Ensure nothing overflows */
}

.page-faq__hero-image-container {
  width: 100%;
  max-width: 100%; /* Ensure container doesn't overflow */
  margin-bottom: 30px; /* Space between image and content */
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-faq__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CTA Button (General) --- */
.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, var(--auxiliary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background-color: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--border-color);
}

.page-faq__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Content Section --- */
.page-faq__content-section {
  padding: 60px 20px;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--glow-color);
  border-radius: 2px;
}

/* --- FAQ List Area --- */
.page-faq__faq-group {
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: var(--card-bg-color); /* Darker background for cards */
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color); /* Light text on dark card */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter header for contrast */
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  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;
  font-weight: bold;
  line-height: 1;
  color: var(--glow-color);
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-main-color);
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__faq-answer h4 {
  font-size: 1.2em;
  color: var(--glow-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-faq__illustration-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__link-button {
  display: inline-block;
  background-color: var(--auxiliary-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-button:hover {
  background-color: var(--primary-color);
}

/* --- Final CTA Section --- */
.page-faq__cta-section {
  background-color: var(--card-bg-color);
  padding: 60px 20px;
  text-align: center;
  color: var(--text-main-color);
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

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

  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__content-section,
  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-container,
  .page-faq__illustration-image,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-section,
  .page-faq__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-image-container {
      padding-left: 0;
      padding-right: 0;
  }
  .page-faq__video-section { /* If video existed, apply this */
    padding-top: 10px !important;
  }

  /* Video responsive rules (if any video elements were present) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-faq__faq-answer img {
  min-width: 200px;
  min-height: 200px;
}