.page-faq {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for hero content */
  color: #FFFFFF;
  overflow: hidden;
  min-height: 500px;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay to make text readable */
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-faq__hero-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__hero-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-faq__hero-button--register:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
}

.page-faq__hero-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-faq__hero-button--login:hover {
  background-color: #e6a73c;
  transform: translateY(-3px);
}

.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 50px auto;
  color: #555555;
}

.page-faq__categories-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-faq__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-faq__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-faq__category-icon {
  width: 250px; /* Minimum 200px */
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-faq__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

.page-faq__category-text {
  font-size: 0.95em;
  color: #666666;
}

.page-faq__faq-section {
  padding: 60px 0;
}

.page-faq__faq-section--dark-bg {
  background-color: #f0f0f0;
}

.page-faq__accordion {
  margin-top: 40px;
}

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

.page-faq__accordion-header {
  display: block;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

.page-faq__accordion-header::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

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

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

.page-faq__accordion-item[open] .page-faq__accordion-header {
  background-color: #f5f5f5;
}

.page-faq__accordion-content {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

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

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

.page-faq__inline-link {
  color: #FCBC45; /* Login button color for emphasis */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
  color: #e6a73c;
  text-decoration: underline;
}

.page-faq__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-faq__cta-section .page-faq__section-title {
  color: #FCBC45; /* Login button color for emphasis */
}

.page-faq__cta-section .page-faq__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-faq__cta-button--register:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
}

.page-faq__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-faq__cta-button--login:hover {
  background-color: #e6a73c;
  transform: translateY(-3px);
}

.page-faq__cta-button--contact {
  background-color: #333333;
  color: #FFFFFF;
}

.page-faq__cta-button--contact:hover {
  background-color: #555555;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-faq__category-icon {
    width: 200px; /* Adjust for smaller screens but still >= 200px */
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: var(--header-offset, 120px);
  }
  .page-faq__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-faq__category-icon {
    width: 280px; /* Ensure images are not too small on mobile, >= 200px */
    height: 200px;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-faq__accordion-header::after {
    right: 20px;
  }
  .page-faq__accordion-content {
    padding: 0 20px 18px 20px;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__cta-button {
    width: 100%;
    margin: 5px 0;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__category-icon {
    width: 250px; /* Maintain minimum size */
    height: 180px;
  }
}