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

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

.page-faq__hero-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark section background */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  overflow: hidden;
}

.page-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

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

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

.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.2s ease;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
}

.page-faq__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Text color for register button */
  border: 2px solid #FFFFFF;
}

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

.page-faq__button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Text color for login button */
  border: 2px solid #FCBC45;
}

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

.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

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

.page-faq__accordion {
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-item {
  border-bottom: 1px solid #E0E0E0;
}

.page-faq__accordion-item:last-child {
  border-bottom: none;
}

.page-faq__accordion-header {
  background-color: #F9F9F9;
  color: #000000;
  padding: 20px 25px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
  background-color: #EEEEEE;
}

.page-faq__accordion-header[aria-expanded="true"] {
  background-color: #E8E8E8;
}

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

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

.page-faq__accordion-content {
  background-color: #FFFFFF;
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__accordion-content p {
  padding: 20px 0;
  margin: 0;
  color: #333333;
  font-size: 1.05em;
}

.page-faq__accordion-content p a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__accordion-content p a:hover {
  text-decoration: underline;
}

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

.page-faq__cta-section {
  background-color: #000000; /* Dark section background */
  color: #FFFFFF; /* Light text for dark background */
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-faq__button--support {
  background-color: #FCBC45; /* Login color, used for support CTA */
  color: #000000; /* Text color for support button */
  border: 2px solid #FCBC45;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
  }
  .page-faq__hero-section {
    padding: 60px 15px;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 100%;
    min-width: unset;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-faq__accordion-content p {
    font-size: 0.95em;
    padding: 15px 0;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__accordion-header {
    font-size: 1em;
    padding: 15px;
  }
}