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

.page-resources-tongits-go-rules__hero-section {
  background-color: #000000; /* Main color for hero background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources-tongits-go-rules__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources-tongits-go-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7; /* Slightly dim the image to make text pop */
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 0;
}

.page-resources-tongits-go-rules__hero-title {
  font-size: 3.5em;
  color: #FCBC45; /* Login button color for emphasis */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
}

.page-resources-tongits-go-rules__hero-description {
  font-size: 1.3em;
  color: #FFFFFF; /* Auxiliary color for text */
  max-width: 800px;
  margin: 0 auto 30px auto;
  position: relative;
  z-index: 2;
}

.page-resources-tongits-go-rules__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.page-resources-tongits-go-rules__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, transform 0.2s ease;
}

.page-resources-tongits-go-rules__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Main color for text on white button */
}

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

.page-resources-tongits-go-rules__button--login,
.page-resources-tongits-go-rules__button--play-now,
.page-resources-tongits-go-rules__button--download-app {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color for text on yellow button */
}

.page-resources-tongits-go-rules__button--login:hover,
.page-resources-tongits-go-rules__button--play-now:hover,
.page-resources-tongits-go-rules__button--download-app:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-resources-tongits-go-rules__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
}

.page-resources-tongits-go-rules__table-of-contents {
  flex: 0 0 280px; /* Fixed width for TOC */
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  align-self: flex-start; /* Stick to the top */
  position: sticky;
  top: calc(var(--header-offset, 120px) + 20px); /* Adjust sticky position */
}

.page-resources-tongits-go-rules__toc-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 20px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-resources-tongits-go-rules__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources-tongits-go-rules__toc-list li {
  margin-bottom: 10px;
}

.page-resources-tongits-go-rules__toc-link {
  text-decoration: none;
  color: #333333;
  font-size: 1.05em;
  transition: color 0.2s ease;
  display: block;
  padding: 5px 0;
}

.page-resources-tongits-go-rules__toc-link:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-resources-tongits-go-rules__article-content {
  flex-grow: 1;
  max-width: 700px; /* Optimal reading width */
}

.page-resources-tongits-go-rules__article-heading {
  font-size: 2.2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources-tongits-go-rules__article-subheading {
  font-size: 1.6em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-tongits-go-rules__article-paragraph {
  font-size: 1.1em;
  margin-bottom: 1.5em;
  color: #333333;
}

.page-resources-tongits-go-rules__article-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 1.5em;
  font-size: 1.1em;
  color: #333333;
}

.page-resources-tongits-go-rules__article-list li {
  margin-bottom: 8px;
}

.page-resources-tongits-go-rules__article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-resources-tongits-go-rules__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-tongits-go-rules__link:hover {
  text-decoration: underline;
}

.page-resources-tongits-go-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-resources-tongits-go-rules__back-link {
  display: inline-block;
  margin-top: 30px;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 10px 15px;
  border: 1px solid #000000;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources-tongits-go-rules__back-link:hover {
  background-color: #000000;
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-tongits-go-rules__content-area {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources-tongits-go-rules__table-of-contents {
    position: static;
    width: 100%;
    max-width: none;
    margin-bottom: 30px;
  }

  .page-resources-tongits-go-rules__article-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources-tongits-go-rules__hero-title {
    font-size: 2.5em;
  }

  .page-resources-tongits-go-rules__hero-description {
    font-size: 1.1em;
  }

  .page-resources-tongits-go-rules__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-tongits-go-rules__button {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-resources-tongits-go-rules__article-heading {
    font-size: 1.8em;
  }

  .page-resources-tongits-go-rules__article-subheading {
    font-size: 1.4em;
  }

  .page-resources-tongits-go-rules__article-paragraph,
  .page-resources-tongits-go-rules__article-list {
    font-size: 1em;
  }

  .page-resources-tongits-go-rules__article-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and do not overflow */
  }

  .page-resources-tongits-go-rules__toc-title {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .page-resources-tongits-go-rules__hero-section {
    padding: 60px 15px;
  }

  .page-resources-tongits-go-rules__hero-title {
    font-size: 2em;
  }

  .page-resources-tongits-go-rules__hero-description {
    font-size: 0.95em;
  }

  .page-resources-tongits-go-rules__content-area {
    padding: 20px 15px;
  }

  .page-resources-tongits-go-rules__button {
    width: 90%;
  }
}