.page-faq {
  color: #333333; /* Dark text on light body background */
}

.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken image to ensure text contrast */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF; /* White text over dark image */
  padding: 20px;
  max-width: 800px;
}

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

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

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
}

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

.page-faq__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-faq__accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f9f9;
}

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

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

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

.page-faq__accordion-title {
  margin: 0;
  font-size: 1em; /* Adjust to fit parent button font-size */
}

.page-faq__accordion-icon {
  font-size: 1.5em;
  transition: transform 0.3s ease;
  color: #000000;
}

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

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

.page-faq__accordion-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #444444;
}

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

.page-faq__answer-text {
  padding-top: 15px;
}

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

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

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

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #F0F0F0;
}

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

.page-faq__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-faq__button--register,
.page-faq__button--join-inplay,
.page-faq__button--register-cta {
  background-color: #FFFFFF; /* White for Register */
  color: #000000;
}

.page-faq__button--register:hover,
.page-faq__button--join-inplay:hover,
.page-faq__button--register-cta:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-faq__button--login {
  background-color: #FCBC45; /* FCBC45 for Login */
  color: #000000;
}

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

.page-faq__button--app-download {
  background-color: #000000; /* Dark button with white text */
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.page-faq__button--app-download:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

.page-faq__button--responsible-gambling,
.page-faq__button--view-promotions,
.page-faq__button--contact-support,
.page-faq__button--contact-us {
  background-color: #000000; /* Default dark button */
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.page-faq__button--responsible-gambling:hover,
.page-faq__button--view-promotions:hover,
.page-faq__button--contact-support:hover,
.page-faq__button--contact-us:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
  }
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 100%;
    max-width: 300px;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__accordion-content {
    padding: 0 20px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__content-area img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images remain large enough */
    min-height: 200px;
  }
  .page-faq__answer-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.5em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.4em;
  }
  .page-faq__accordion-header {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-faq__accordion-content {
    padding: 0 15px;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
}