/* style/ththao.css */

/* Custom Colors */
:root {
  --page-ththao-primary-color: #11A84E;
  --page-ththao-secondary-color: #22C768;
  --page-ththao-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ththao-card-bg: #11271B;
  --page-ththao-background: #08160F;
  --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;
}

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

/* Section spacing and general layout */
.page-ththao__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-ththao__dark-section {
  background-color: var(--page-ththao-background);
  color: var(--page-ththao-text-main);
}

.page-ththao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-ththao-text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-ththao__section-title--light {
  color: var(--page-ththao-text-main);
}

.page-ththao__paragraph {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-ththao-text-secondary);
}

.page-ththao__paragraph--light {
  color: var(--page-ththao-text-secondary);
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 20px 60px 20px; /* body handles header-offset, this is for visual padding */
  overflow: hidden;
  text-align: center;
}

.page-ththao__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 70vh; /* Limit height to prevent image being too tall */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-ththao__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-ththao__main-title {
  font-size: 3em;
  font-weight: 800;
  line-height: 1.1;
  color: var(--page-ththao-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-ththao__intro-text {
  font-size: 1.25em;
  color: var(--page-ththao-text-main);
  margin-bottom: 40px;
}

/* CTA Buttons */
.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-button-gradient);
  color: #ffffff;
  border: 2px solid var(--page-ththao-primary-color);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--page-ththao-gold-color);
  border: 2px solid var(--page-ththao-gold-color);
}

.page-ththao__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--page-ththao-gold-color);
  color: var(--page-ththao-background);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__btn-small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-ththao__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Cards */
.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ththao-text-main);
}

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

/* Features Grid */
.page-ththao__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-ththao__feature-title {
  font-size: 1.5em;
  color: var(--page-ththao-gold-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-ththao__feature-description {
  font-size: 1em;
  color: var(--page-ththao-text-secondary);
  text-align: center;
}

/* Content Images */
.page-ththao__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-ththao__content-image--small {
  max-width: 800px;
}

/* Bet Types Section */
.page-ththao__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ththao__bet-type-title {
  font-size: 1.4em;
  color: var(--page-ththao-gold-color);
  margin-bottom: 10px;
  text-align: center;
}

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

/* How to Join Section */
.page-ththao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.page-ththao__step-item {
  text-align: center;
  padding: 20px;
}

.page-ththao__step-title {
  font-size: 1.8em;
  color: var(--page-ththao-gold-color);
  margin-bottom: 15px;
}

.page-ththao__step-description {
  font-size: 1em;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 25px;
}

/* Promotions Section */
.page-ththao__promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-ththao__promo-title {
  font-size: 1.4em;
  color: var(--page-ththao-gold-color);
  margin-bottom: 10px;
  text-align: center;
}

.page-ththao__promo-description {
  font-size: 0.95em;
  color: var(--page-ththao-text-secondary);
  text-align: center;
}

/* Security Section */
.page-ththao__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__security-list li {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-divider-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--page-ththao-text-main);
  font-size: 1.05em;
}

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

/* Video Section */
.page-ththao__video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* body handles header-offset, this is for visual padding */
}

.page-ththao__video-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-ththao__video-container {
  width: 100%; /* Important for desktop as well */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-ththao__video-link-wrapper {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-ththao__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FAQ Section */
.page-ththao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-ththao__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  background-color: var(--page-ththao-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15em;
  color: var(--page-ththao-gold-color);
  list-style: none;
}

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

.page-ththao__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-ththao-glow-color);
  transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  transform: rotate(45deg);
}

.page-ththao__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-ththao-text-secondary);
}

.page-ththao__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* CTA Bottom Section */
.page-ththao__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ththao__cta-content {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: 2.5em;
  }
  .page-ththao__section-title {
    font-size: 2em;
  }
  .page-ththao__intro-text {
    font-size: 1.1em;
  }
  .page-ththao__hero-image-wrapper {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .page-ththao__content-area,
  .page-ththao__hero-section,
  .page-ththao__bet-types-section,
  .page-ththao__how-to-join-section,
  .page-ththao__promotions-section,
  .page-ththao__security-section,
  .page-ththao__video-section,
  .page-ththao__faq-section,
  .page-ththao__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-ththao__video-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

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

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

  .page-ththao__intro-text {
    font-size: 1em;
  }

  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 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 img,
  .page-ththao video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ththao__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-ththao__video-container {
    padding-bottom: 75%; /* Adjust for 4:3 or other mobile friendly aspect ratio if needed, or keep 16:9 */
  }

  .page-ththao__feature-item,
  .page-ththao__bet-type-item,
  .page-ththao__step-item,
  .page-ththao__promo-item {
    padding: 20px;
  }

  .page-ththao__security-list li {
    font-size: 0.95em;
    padding: 12px 15px;
  }

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

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

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: 1.7em;
  }
  .page-ththao__section-title {
    font-size: 1.5em;
  }
  .page-ththao__intro-text {
    font-size: 0.9em;
  }
  .page-ththao__hero-image-wrapper {
    max-height: 40vh;
  }
  .page-ththao__btn-large {
    font-size: 1.1em;
    padding: 12px 25px;
  }
}