:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --background-color-page: #140C0C; /* Specific background for this page's sections */
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;

  /* Default text colors for contrast */
  --dark-text: #333333;
  --light-text: #FFFFFF;
}

/* Base styles for the page content */
.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page, assuming dark background */
  background-color: var(--background-color-page); /* Page specific dark background */
}

.page-ththao a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ththao a:hover {
  color: var(--text-main);
}

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

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

.page-ththao__section--intro,
.page-ththao__section--betting-types,
.page-ththao__section--promotions,
.page-ththao__section--faq {
  background-color: var(--card-bg); /* Use card background for contrast */
  color: var(--text-main);
}

.page-ththao__section-title {
  font-size: 38px;
  margin-bottom: 25px;
  font-weight: bold;
  color: var(--gold-color); /* Gold for titles on dark background */
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
}

.page-ththao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-ththao__section-title--light {
  color: var(--gold-color); /* Already gold */
}

.page-ththao__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main); /* Default text color */
}

.page-ththao__text-block--light {
  color: var(--text-main); /* Ensure light text on dark background */
}

/* HERO Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color-page);
  overflow: hidden;
}

.page-ththao__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-ththao__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-ththao__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-ththao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-ththao__main-title {
  font-size: 52px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ththao__hero-description {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-ththao__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-ththao__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__cta-button--secondary {
  background: none;
  border: 2px solid var(--gold-color);
  color: var(--gold-color);
  box-shadow: none;
}

.page-ththao__cta-button--secondary:hover {
  background: rgba(243, 197, 77, 0.1);
  color: var(--text-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Sports Grid */
.page-ththao__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__sport-card {
  background-color: var(--background-color-page);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-ththao__sport-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-ththao__sport-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-color);
}

.page-ththao__sport-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-ththao__sport-description {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 20px;
}

/* Betting List */
.page-ththao__betting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-ththao__betting-item {
  background-color: var(--background-color-page);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.page-ththao__betting-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ththao__betting-description {
  font-size: 16px;
  color: var(--text-main);
}

/* Register Steps */
.page-ththao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__step-card {
  background-color: var(--background-color-page);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-ththao__step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
  border: 3px solid var(--gold-color);
}

.page-ththao__step-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-ththao__step-description {
  font-size: 16px;
  color: var(--text-main);
}

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

.page-ththao__promo-card {
  background-color: var(--background-color-page);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-ththao__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-ththao__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-color);
}

.page-ththao__promo-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-ththao__promo-description {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 20px;
}

/* Security List */
.page-ththao__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-ththao__security-item {
  background-color: var(--background-color-page);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.page-ththao__security-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ththao__security-description {
  font-size: 16px;
  color: var(--text-main);
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-ththao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Increased border-radius for aesthetics */
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-color-page); /* Use page background for FAQ items */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
details.page-ththao__faq-item summary.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-ththao__faq-item summary.page-ththao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ththao__faq-item summary.page-ththao__faq-question:hover {
  background: rgba(var(--primary-color), 0.1); /* Subtle hover effect */
}
.page-ththao__faq-qtext {
  flex: 1;
  font-size: 18px; /* Increased font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* FAQ question text color */
}
.page-ththao__faq-toggle {
  font-size: 28px; /* Increased font size */
  font-weight: bold;
  color: var(--gold-color); /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Increased width */
  text-align: center;
}
details.page-ththao__faq-item .page-ththao__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: rgba(var(--background-color-page), 0.8); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-main); /* FAQ answer text color */
}
details.page-ththao__faq-item .page-ththao__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

/* Final CTA Section */
.page-ththao__section--cta-final {
  background-color: var(--primary-color); /* Use primary color for final CTA */
  padding: 80px 0;
}

.page-ththao__section--cta-final .page-ththao__section-title {
  color: var(--text-main); /* White text on primary color background */
}

.page-ththao__section--cta-final .page-ththao__text-block {
  color: var(--text-main); /* White text on primary color background */
}

.page-ththao__section--cta-final .page-ththao__cta-button {
  background: var(--button-gradient);
  border: none;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: 44px;
  }
  .page-ththao__hero-description {
    font-size: 18px;
  }
  .page-ththao__section-title {
    font-size: 32px;
  }
  .page-ththao__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-top: 10px !important; /* body handles header offset, small top padding for section */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Clamp for h1 on mobile */
    margin-bottom: 15px;
  }
  .page-ththao__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-ththao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ththao__cta-button,
  .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__cta-buttons,
  .page-ththao__button-group,
  .page-ththao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-ththao__section {
    padding: 40px 0;
  }
  .page-ththao__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-ththao__text-block {
    font-size: 15px;
  }

  .page-ththao__sport-card,
  .page-ththao__step-card,
  .page-ththao__promo-card,
  .page-ththao__betting-item,
  .page-ththao__security-item {
    padding: 20px;
  }

  .page-ththao__sport-title,
  .page-ththao__step-title,
  .page-ththao__promo-title,
  .page-ththao__betting-title,
  .page-ththao__security-title {
    font-size: 20px;
  }

  .page-ththao__sport-description,
  .page-ththao__step-description,
  .page-ththao__promo-description,
  .page-ththao__betting-description,
  .page-ththao__security-description {
    font-size: 15px;
  }

  details.page-ththao__faq-item summary.page-ththao__faq-question {
    padding: 15px 20px;
  }
  .page-ththao__faq-qtext {
    font-size: 16px;
  }
  .page-ththao__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-ththao__faq-item .page-ththao__faq-answer {
    padding: 0 20px 20px;
  }
  details.page-ththao__faq-item .page-ththao__faq-answer p {
    font-size: 15px;
  }

  /* Image responsive rules */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ththao__section,
  .page-ththao__container,
  .page-ththao__sport-card,
  .page-ththao__step-card,
  .page-ththao__promo-card,
  .page-ththao__betting-item,
  .page-ththao__security-item,
  .page-ththao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ththao__hero-image {
    padding-left: 0;
    padding-right: 0;
  }
}