/* style/faq.css */
.page-faq {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Mandatory for header spacing */
}

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

/* Hero Section */
.page-faq__hero-section {
  background: linear-gradient(135deg, #FFD700, #1E90FF);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-faq__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 800px; /* Ensure image is not too wide */
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Buttons */
.page-faq__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px; /* Ensure button minimum width */
}

.page-faq__button--primary {
  background-color: #FFD700; /* Gold */
  color: #1E90FF; /* Dark blue text for contrast */
  border: 2px solid #FFD700;
}

.page-faq__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-faq__button--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-faq__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-faq__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #1E90FF; /* Dark blue title */
}

.page-faq__faq-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq__faq-question {
  width: 100%;
  background-color: #1E90FF; /* Dark blue background for question */
  color: #ffffff;
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #1a7ad9;
}

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

.page-faq__faq-question[aria-expanded="true"] .page-faq__faq-icon {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-answer p {
  padding: 20px 0;
  color: #555555;
  font-size: 1em;
}

.page-faq__faq-answer--active {
  max-height: 500px; /* Adjust as needed for content length */
  padding-bottom: 25px;
}

.page-faq__faq-answer a {
  color: #1E90FF; /* Link color */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #FFD700; /* Gold on hover */
}

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #1E90FF;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__hero-title {
    font-size: 2em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-faq__button {
    width: 100%;
    max-width: 300px; /* Limit button width on small screens */
  }

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

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

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

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

  .page-faq__cta-description {
    font-size: 1em;
  }

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

  .page-faq__hero-container {
    flex-direction: column-reverse; /* Image on top for mobile */
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

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