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

.page-resources-th777-faq__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  color: #FFFFFF; /* White text over hero image */
  text-align: center;
}

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

.page-resources-th777-faq__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay for text readability */
  border-radius: 10px;
}

.page-resources-th777-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-resources-th777-faq__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

.page-resources-th777-faq__button--promo {
  background-color: #000000;
  color: #FCBC45;
  border: 1px solid #FCBC45;
}

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

.page-resources-th777-faq__content-area {
  max-width: 1000px; /* Wider for article container */
  margin: 0 auto;
  padding: 60px 20px;
}

.page-resources-th777-faq__article-container {
  max-width: 750px; /* Content width for readability */
  margin: 0 auto;
}

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

.page-resources-th777-faq__sub-heading {
  font-size: 1.6em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-th777-faq__article p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources-th777-faq__article a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-th777-faq__article a:hover {
  text-decoration: underline;
}

.page-resources-th777-faq__article-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-th777-faq__article-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-resources-th777-faq__button--register-bottom {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources-th777-faq__button--register-bottom:hover {
  background-color: #e0a53a;
  transform: translateY(-2px);
}

.page-resources-th777-faq__button--back-to-resources {
  background-color: #000000;
  color: #FFFFFF;
}

.page-resources-th777-faq__button--back-to-resources:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources-th777-faq__hero-section {
    min-height: 450px;
    padding: 40px 15px;
  }

  .page-resources-th777-faq__main-title {
    font-size: 2.2em;
  }

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

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

  .page-resources-th777-faq__button {
    width: 100%;
    text-align: center;
  }

  .page-resources-th777-faq__content-area {
    padding: 30px 15px;
  }

  .page-resources-th777-faq__article-heading {
    font-size: 1.8em;
  }

  .page-resources-th777-faq__sub-heading {
    font-size: 1.4em;
  }

  .page-resources-th777-faq__article p {
    font-size: 1em;
  }

  .page-resources-th777-faq__article-image {
    max-width: 100%; /* Ensure images don't overflow on mobile */
    height: auto;
  }

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

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

  .page-resources-th777-faq__hero-container {
    padding: 20px;
  }
}