/* style/ththao.css */

/* Variables */
:root {
  --page-ththao-primary-color: #11A84E;
  --page-ththao-secondary-color: #22C768;
  --page-ththao-bg-dark: #08160F;
  --page-ththao-card-bg: #11271B;
  --page-ththao-text-main: #F2FFF6;
  --page-ththao-text-secondary: #A7D9B8;
  --page-ththao-border-color: #2E7A4E;
  --page-ththao-glow-color: #57E38D;
  --page-ththao-gold-color: #F2C14E;
  --page-ththao-divider-color: #1E3A2A;
  --page-ththao-deep-green: #0A4B2C;
  --page-ththao-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-ththao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-ththao-text-main); /* Default text color for dark background */
  background-color: var(--page-ththao-bg-dark);
}

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

/* Sections */
.page-ththao__hero-section,
.page-ththao__video-section,
.page-ththao__introduction-section,
.page-ththao__popular-sports-section,
.page-ththao__bet-types-section,
.page-ththao__promotions-section,
.page-ththao__guide-section,
.page-ththao__features-section,
.page-ththao__faq-section,
.page-ththao__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-ththao-bg-dark);
  position: relative;
}

.page-ththao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ththao__hero-content {
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect */
  position: relative;
  z-index: 1;
  background-color: rgba(8, 22, 15, 0.85); /* Semi-transparent dark background for text readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__main-title {
  color: var(--page-ththao-text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size */
}

.page-ththao__description {
  color: var(--page-ththao-text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-ththao__section-title {
  color: var(--page-ththao-text-main);
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-ththao__section-description {
  color: var(--page-ththao-text-secondary);
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-video-cta {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-ththao__btn-secondary {
  background: none;
  color: var(--page-ththao-text-main);
  border: 2px solid var(--page-ththao-primary-color);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Video Section */
.page-ththao__video-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-ththao__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.page-ththao__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-ththao__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.page-ththao__btn-video-cta {
  margin-top: 20px;
}

/* Cards */
.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-ththao-text-main);
}

.page-ththao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-ththao__card-title {
  color: var(--page-ththao-text-main);
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ththao__card-text {
  color: var(--page-ththao-text-secondary);
  font-size: 0.95em;
}

.page-ththao__image-inline {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Bet Types List */
.page-ththao__bet-types-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

.page-ththao__bet-type-title {
  color: var(--page-ththao-text-main);
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ththao__bet-type-text {
  color: var(--page-ththao-text-secondary);
  font-size: 0.95em;
}

/* Promotions List */
.page-ththao__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-ththao__promo-list li {
  background-color: var(--page-ththao-card-bg);
  border-left: 5px solid var(--page-ththao-primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: var(--page-ththao-text-main);
  font-size: 1.05em;
}

.page-ththao__promo-list li strong {
  color: var(--page-ththao-gold-color);
}

/* Guide Section */
.page-ththao__guide-list {
  list-style: none;
  counter-reset: guide-step;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-ththao__guide-list li {
  background-color: var(--page-ththao-card-bg);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  counter-increment: guide-step;
  color: var(--page-ththao-text-main);
}

.page-ththao__guide-list li::before {
  content: counter(guide-step);
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--page-ththao-primary-color);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__guide-list h3 {
  color: var(--page-ththao-gold-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
  padding-left: 30px;
}

.page-ththao__guide-list p {
  color: var(--page-ththao-text-secondary);
  padding-left: 30px;
}

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

.page-ththao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--page-ththao-text-main);
}

.page-ththao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--page-ththao-deep-green);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  list-style: none;
  color: var(--page-ththao-text-main);
}

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

.page-ththao__faq-qtext {
  flex-grow: 1;
}

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-ththao__faq-answer {
  padding: 15px 20px;
  background-color: var(--page-ththao-card-bg);
  border-top: 1px solid var(--page-ththao-border-color);
  color: var(--page-ththao-text-secondary);
}

.page-ththao__faq-answer p {
  margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-ththao__hero-section,
  .page-ththao__video-section,
  .page-ththao__introduction-section,
  .page-ththao__popular-sports-section,
  .page-ththao__bet-types-section,
  .page-ththao__promotions-section,
  .page-ththao__guide-section,
  .page-ththao__features-section,
  .page-ththao__faq-section,
  .page-ththao__cta-section {
    padding: 40px 0;
  }

  .page-ththao__hero-content {
    margin-top: -60px;
    padding: 20px;
  }

  .page-ththao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-ththao__description,
  .page-ththao__section-description,
  .page-ththao__text-block {
    font-size: 1em;
    padding: 0 15px;
  }

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

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

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-video-cta {
    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__video-wrapper,
  .page-ththao__sports-grid,
  .page-ththao__bet-types-list,
  .page-ththao__promo-list,
  .page-ththao__guide-list,
  .page-ththao__features-grid,
  .page-ththao__faq-list {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-ththao img,
  .page-ththao video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__video-section {
    padding-top: 10px !important;
  }

  .page-ththao__guide-list li::before {
    left: 15px;
    top: 20px;
    transform: none;
  }

  .page-ththao__guide-list h3,
  .page-ththao__guide-list p {
    padding-left: 60px;
  }
}

/* Color Contrast Fixes (if needed) - applying based on dark background assumption */
.page-ththao__dark-bg {
  background-color: var(--page-ththao-bg-dark);
  color: var(--page-ththao-text-main);
}

.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  color: var(--page-ththao-text-main);
}

.page-ththao p,
.page-ththao li,
.page-ththao__card-text,
.page-ththao__bet-type-text,
.page-ththao__faq-answer p {
  color: var(--page-ththao-text-secondary);
}