/* style/faq.css */
.page-faq {
  color: #FFF3E6; /* Text Main */
  background-color: var(--background-color, #0D0E12); /* Fallback to default dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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, body handles header offset */
  overflow: hidden;
  background-color: #0D0E12;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6; /* Text Main */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #FF8C1A; /* Main Color */
  border: 2px solid #A84F0C; /* Border Color */
}

.page-faq__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  color: #FFB04D; /* Glow Color */
  border-color: #FFB04D;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

.page-faq__faq-section {
  padding: 60px 20px;
  background-color: #0D0E12; /* Background */
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border Color */
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.page-faq__faq-item:hover {
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.3);
  transform: translateY(-3px);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25em;
  font-weight: 600;
  color: #FFB04D; /* Glow Color */
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(168, 79, 12, 0.3);
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #0D0E12;
  color: #FFA53A;
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: #FF8C1A;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #FFF3E6;
  background-color: #0D0E12;
  border-top: 1px solid rgba(168, 79, 12, 0.2);
}

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

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

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

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

.page-faq__faq-answer a {
  color: #FFA53A;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #FFB04D;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__sub-title {
  font-size: 1.4em;
  color: #FFA53A; /* Auxiliary Color */
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-faq__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-faq__cta-section {
  background-color: #17191F; /* Card BG */
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #A84F0C;
}

.page-faq__cta-content {
  max-width: 800px;
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: #FFB04D; /* Glow Color */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 40px;
}

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

/* Details/Summary specific styles for better accessibility */
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item summary {
  list-style: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

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

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

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

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

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

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

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

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

  .page-faq__image {
    margin: 20px auto;
  }

  .page-faq__sub-title {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-faq__cta-section {
    padding: 60px 15px;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-faq__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

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