.page-resources-th777-login-faq {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF;
}

.page-resources-th777-login-faq__hero-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-resources-th777-login-faq__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-resources-th777-login-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-resources-th777-login-faq__intro-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-th777-login-faq__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-resources-th777-login-faq__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.05em;
  cursor: pointer;
  border: none;
}

.page-resources-th777-login-faq__btn--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources-th777-login-faq__btn--register:hover {
  background-color: #f0f0f0;
}

.page-resources-th777-login-faq__btn--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources-th777-login-faq__btn--login:hover {
  background-color: #e0a538;
}

.page-resources-th777-login-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources-th777-login-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
  display: block;
}

.page-resources-th777-login-faq__content-area {
  max-width: 800px; /* Content width for comfortable reading */
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources-th777-login-faq__back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-th777-login-faq__back-link:hover {
  color: #e0a538;
}

.page-resources-th777-login-faq__section-title {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-resources-th777-login-faq__paragraph {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333333;
}

.page-resources-th777-login-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
}

.page-resources-th777-login-faq__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-resources-th777-login-faq__faq-answer {
  font-size: 1.0em;
  color: #555555;
  margin-bottom: 0;
}

.page-resources-th777-login-faq__faq-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 10px;
  display: block;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

.page-resources-th777-login-faq__cta-inline {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-resources-th777-login-faq__btn--register-small,
.page-resources-th777-login-faq__btn--download,
.page-resources-th777-login-faq__btn--support {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  font-size: 1em;
}

.page-resources-th777-login-faq__btn--register-small:hover,
.page-resources-th777-login-faq__btn--download:hover,
.page-resources-th777-login-faq__btn--support:hover {
  background-color: #333333;
}

.page-resources-th777-login-faq__final-cta {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.page-resources-th777-login-faq__btn--join-now {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-resources-th777-login-faq__btn--join-now:hover {
  background-color: #e0a538;
}

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

  .page-resources-th777-login-faq__intro-description {
    font-size: 1em;
  }

  .page-resources-th777-login-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-th777-login-faq__btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .page-resources-th777-login-faq__section-title {
    font-size: 1.6em;
  }

  .page-resources-th777-login-faq__faq-question {
    font-size: 1.2em;
  }

  .page-resources-th777-login-faq__content-area {
    padding: 20px 15px;
  }
  
  .page-resources-th777-login-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources-th777-login-faq__main-title {
    font-size: 1.8em;
  }

  .page-resources-th777-login-faq__hero-section {
    padding: 60px 15px;
  }

  .page-resources-th777-login-faq__faq-item {
    padding: 15px;
  }
}