:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
}

.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--deep-navy-color); /* Matches body background from shared */
}

.page-ththao h1, .page-ththao h2, .page-ththao h3 {
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ththao h1 {
  /* No fixed font-size for h1, rely on clamp or responsive sizing */
  font-weight: 800;
  letter-spacing: -1px;
}

.page-ththao h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
}

.page-ththao h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-ththao p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

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

.page-ththao a:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

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

/* 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(--primary-color);
  overflow: hidden;
}

.page-ththao__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-ththao__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ththao__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Inner border-radius for image */
}

.page-ththao__hero-content {
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-ththao__hero-content h1 {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 20px;
}

.page-ththao__hero-content p {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-ththao__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--btn-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

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

/* General Section Styles */
.page-ththao__introduction-section, .page-ththao__odds-section, .page-ththao__promotions-section, .page-ththao__faq-section {
  background-color: #f9f9f9; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-ththao__introduction-section h2, .page-ththao__odds-section h2, .page-ththao__promotions-section h2, .page-ththao__faq-section h2 {
  color: var(--primary-color);
}

.page-ththao__introduction-section p, .page-ththao__odds-section p, .page-ththao__promotions-section p, .page-ththao__faq-section p {
  color: #555555;
}

.page-ththao__sports-categories, .page-ththao__guide-section, .page-ththao__security-support-section {
  background-color: var(--deep-navy-color); /* Dark background */
  color: var(--text-main);
}

.page-ththao__sports-categories h2, .page-ththao__guide-section h2, .page-ththao__security-support-section h2 {
  color: var(--gold-color);
}

.page-ththao__sports-categories h3, .page-ththao__guide-section h3, .page-ththao__security-support-section h3 {
  color: var(--text-main);
}

.page-ththao__sports-categories p, .page-ththao__guide-section p, .page-ththao__security-support-section p {
  color: var(--text-secondary);
}

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

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

.page-ththao__sport-item:hover, .page-ththao__promo-item:hover, .page-ththao__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-ththao__sport-item img, .page-ththao__promo-item img, .page-ththao__security-item img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-ththao__odds-section ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-ththao__odds-section ul li {
  background-color: #ffffff;
  color: #333333;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
}

.page-ththao__odds-section ul li strong {
  color: var(--primary-color);
}

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

.page-ththao__guide-step {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-ththao__guide-step h3 {
  color: var(--gold-color);
  position: relative;
  padding-left: 40px;
}

.page-ththao__guide-step h3::before {
  content: ' '; /* Placeholder for step number/icon */
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid var(--glow-color);
}

.page-ththao__guide-steps div:nth-child(1) h3::before { content: '1'; }
.page-ththao__guide-steps div:nth-child(2) h3::before { content: '2'; }
.page-ththao__guide-steps div:nth-child(3) h3::before { content: '3'; }
.page-ththao__guide-steps div:nth-child(4) h3::before { content: '4'; }

.page-ththao__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--btn-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.page-ththao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-ththao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--gold-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-color);
  cursor: pointer;
}

.page-ththao__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--deep-navy-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

/* FAQ Section */
details.page-ththao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-ththao__faq-item summary.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
  font-weight: 600;
}

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: #f5f5f5;
}

.page-ththao__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-ththao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-ththao__faq-item .page-ththao__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-content h1 {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-ththao__hero-content p {
    font-size: 1.1em;
  }
  .page-ththao h2 {
    font-size: 2em;
  }
  .page-ththao h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-ththao__hero-image img {
    border-radius: 4px;
  }
  
  .page-ththao__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-ththao__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ththao h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-ththao h3 {
    font-size: 1.3em;
  }

  .page-ththao__sport-grid, .page-ththao__promo-grid, .page-ththao__security-support-grid, .page-ththao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__sport-item, .page-ththao__promo-item, .page-ththao__security-item, .page-ththao__guide-step {
    padding: 20px;
  }

  .page-ththao__sport-item img, .page-ththao__promo-item img, .page-ththao__security-item img {
    height: 200px; /* Adjust height for mobile */
  }

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

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

  /* Mobile button responsiveness */
  .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__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}