.page-faq {
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Matches body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-container {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFFFF;
}

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

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

.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, color 0.3s ease;
  white-space: nowrap;
}

.page-faq__button--register {
  background-color: #000000; /* Dark background for register */
  color: #FFFFFF; /* White text for register */
  border: 2px solid #FFFFFF;
}

.page-faq__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-faq__button--login {
  background-color: #FCBC45; /* Yellow background for login */
  color: #000000; /* Black text for login */
  border: 2px solid #FCBC45;
}

.page-faq__button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

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

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

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

.page-faq__intro-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: #555555;
}

.page-faq__accordion-group {
  margin-bottom: 60px;
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #EEEEEE;
  padding-bottom: 15px;
}

.page-faq__accordion-item {
  background-color: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-faq__accordion-summary {
  display: block;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  position: relative;
  user-select: none;
  background-color: #FDFDFD;
  border-bottom: 1px solid transparent; /* Placeholder for expanded state */
}

.page-faq__accordion-summary::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-faq__accordion-item[open] .page-faq__accordion-summary::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-faq__accordion-item[open] .page-faq__accordion-summary {
  border-bottom: 1px solid #EEEEEE;
}

.page-faq__accordion-content {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.8;
  color: #444444;
  background-color: #FFFFFF;
}

.page-faq__accordion-content p {
  margin-bottom: 15px;
}

.page-faq__accordion-content p:last-child {
  margin-bottom: 0;
}

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

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

.page-faq__image-inline {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-faq__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  border-radius: 12px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
  position: relative;
  z-index: 1;
}

.page-faq__button--contact {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  position: relative;
  z-index: 1;
}

.page-faq__button--contact:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.page-faq__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__accordion-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }
  .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: 80%;
    max-width: 300px;
  }
  .page-faq__content-area {
    padding: 30px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__intro-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-faq__accordion-group {
    padding: 20px;
    margin-bottom: 40px;
  }
  .page-faq__accordion-title {
    font-size: 1.3em;
    margin-bottom: 20px;
  }
  .page-faq__accordion-summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__accordion-summary::after {
    right: 20px;
    font-size: 1.3em;
  }
  .page-faq__accordion-content {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-faq__image-inline {
    max-width: 100%;
    height: auto;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
    margin-top: 40px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  /* Ensure all images in content area are responsive and do not overflow */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__accordion-title {
    font-size: 1.2em;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
  .page-faq__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}