/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background color */
}

/* Hero Section */
.page-faq__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  text-align: center;
  color: #000000; /* Dark text for light gradient background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  width: 100%; /* Ensure full width on desktop by default */
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 15px;
  color: #111111;
  line-height: 1.2;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for button */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
}

.page-faq__btn-secondary {
  background: #111111; /* Card background color */
  color: #F2C14E; /* Main brand color */
  border: 2px solid #F2C14E;
}

.page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main brand color */
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF6D6;
}

.page-faq__faq-category {
  margin-bottom: 40px;
  background-color: #111111; /* Card background color */
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #3A2A12; /* Border color */
}

.page-faq__category-title {
  font-size: 1.8em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 25px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #3A2A12;
}

.page-faq__faq-item {
  border-bottom: 1px solid #3A2A12;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.page-faq__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFF6D6;
  transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
  color: #F2C14E;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: #FFD36B;
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 15px;
}

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

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

.page-faq__faq-answer a {
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-faq__call-to-action {
  background-color: #0A0A0A;
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.2em;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
/* All images base responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: 2em;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-faq__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-faq__category-title {
    font-size: 1.5em;
  }

  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 10px 0;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px;
  }

  .page-faq__call-to-action {
    padding: 60px 0;
  }

  .page-faq__cta-title {
    font-size: 2em;
  }

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

  /* Force all images and their containers to be responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__hero-content,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right might be added by container if needed, e.g., 15px */
  }

  /* Ensure no horizontal scroll for elements with potential overflow */
  .page-faq {
    overflow-x: hidden;
  }
}

/* Glow effect for certain elements */
.page-faq__btn-primary:focus,
.page-faq__faq-question:focus {
  box-shadow: 0 0 8px #FFD36B; /* Glow color */
  outline: none;
}