.page-ththao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--custom-bg, #ffffff); /* Fallback to white if --custom-bg is not set */
}

.page-ththao__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-ththao__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-ththao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared body padding-top handles header offset */
  padding-bottom: 40px;
  background: #017439; /* Brand color for hero background */
  color: #ffffff;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-ththao__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-ththao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-ththao__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-ththao__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-ththao__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-ththao__small-button {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-ththao__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-ththao__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

.page-ththao__section-description {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: inherit;
}

.page-ththao__introduction-section .page-ththao__section-description {
  text-align: justify;
}

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

.page-ththao__gameshow-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%;
}

.page-ththao__gameshow-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-ththao__gameshow-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-ththao__gameshow-text {
  font-size: 1rem;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-ththao__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ththao__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ththao__feature-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-ththao__feature-text {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
}

.page-ththao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ththao__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  color: #ffffff;
}

.page-ththao__guide-step-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-ththao__guide-step-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-ththao__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-ththao__promo-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ththao__promo-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-ththao__promo-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ththao__promo-note {
  margin-top: 30px;
  font-style: italic;
  color: #555555;
}

.page-ththao__promo-note a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-ththao__promo-note a:hover {
  text-decoration: underline;
}

.page-ththao__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-ththao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: #FFFF00;
  list-style: none; /* For details/summary */
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none;
}

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  user-select: none;
}

.page-ththao__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ththao__faq-item[open] .page-ththao__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: '−';
}

.page-ththao__conclusion-section .page-ththao__section-description a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-ththao__conclusion-section .page-ththao__section-description a:hover {
  text-decoration: underline;
}

/* General image and container responsiveness */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-ththao__section,
.page-ththao__container,
.page-ththao__gameshow-grid,
.page-ththao__features-grid,
.page-ththao__cta-buttons,
.page-ththao__guide-list,
.page-ththao__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-ththao {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-ththao__hero-content {
    padding: 15px;
  }

  .page-ththao__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-ththao__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao a[class*="button"],
  .page-ththao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__section {
    padding: 40px 0;
  }

  .page-ththao__container {
    padding: 0 15px;
  }

  .page-ththao__section-title {
    font-size: 2rem;
  }

  .page-ththao__section-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-ththao__gameshow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__gameshow-card {
    padding: 15px;
  }

  .page-ththao__gameshow-image {
    height: 200px;
  }

  .page-ththao__gameshow-title {
    font-size: 1.3rem;
  }

  .page-ththao__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__feature-item {
    padding: 20px;
  }

  .page-ththao__feature-image {
    height: 180px;
  }

  .page-ththao__feature-title {
    font-size: 1.2rem;
  }

  .page-ththao__guide-item {
    padding: 20px;
  }

  .page-ththao__guide-step-title {
    font-size: 1.3rem;
  }

  .page-ththao__promo-card {
    padding: 20px;
  }

  .page-ththao__promo-title {
    font-size: 1.4rem;
  }

  .page-ththao__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-ththao__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* General image responsiveness for mobile */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__hero-image-wrapper,
  .page-ththao__gameshow-grid,
  .page-ththao__features-grid,
  .page-ththao__guide-list,
  .page-ththao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}