/* style/ththao.css */

/* Variables for 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;
}

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

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

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

.page-ththao__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--page-ththao-text-secondary);
  text-align: justify;
}

.page-ththao__highlight {
  color: var(--page-ththao-text-main);
  font-weight: bold;
}

.page-ththao__link-text {
  color: var(--page-ththao-secondary-color);
  text-decoration: underline;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top from header */
  overflow: hidden;
  background-color: var(--page-ththao-deep-green);
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ththao__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px 0;
  z-index: 1;
  box-sizing: border-box;
}

.page-ththao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--page-ththao-gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ththao__hero-description {
  font-size: 1.2rem;
  color: var(--page-ththao-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;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-button-gradient);
  color: var(--page-ththao-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-ththao__btn-secondary:hover {
  background: var(--page-ththao-border-color);
  color: var(--page-ththao-text-main);
}

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

.page-ththao__btn-tertiary:hover {
  background: var(--page-ththao-secondary-color);
  color: var(--page-ththao-background);
}

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

/* Sections */
.page-ththao__introduction-section,
.page-ththao__odds-section,
.page-ththao__guide-section,
.page-ththao__faq-section {
  padding: 80px 0;
  background-color: var(--page-ththao-background);
}

.page-ththao__dark-section {
  background-color: var(--page-ththao-card-bg);
  padding: 80px 0;
}

.page-ththao__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Featured Sports */
.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(--page-ththao-deep-green);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border: 1px solid var(--page-ththao-border-color);
}

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

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

.page-ththao__card-title {
  font-size: 1.5rem;
  color: var(--page-ththao-gold-color);
  margin-bottom: 10px;
}

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

/* Odds Section */
.page-ththao__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ththao__list-item {
  background-color: var(--page-ththao-card-bg);
  border-left: 5px solid var(--page-ththao-secondary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--page-ththao-text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-ththao__list-item strong {
  color: var(--page-ththao-text-main);
}

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

.page-ththao__feature-card {
  background-color: var(--page-ththao-deep-green);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-ththao-border-color);
}

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

.page-ththao__guide-item {
  background-color: var(--page-ththao-card-bg);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--page-ththao-gold-color);
}

.page-ththao__guide-step-title {
  font-size: 1.3rem;
  color: var(--page-ththao-gold-color);
  margin-bottom: 10px;
}

.page-ththao__guide-step-description {
  color: var(--page-ththao-text-secondary);
}

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

.page-ththao__promo-card {
  background-color: var(--page-ththao-deep-green);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-ththao-border-color);
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 40px;
}

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--page-ththao-text-main);
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

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

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

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-ththao-secondary-color);
}

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

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

/* Conclusion Section */
.page-ththao__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-ththao-deep-green);
}

.page-ththao__conclusion-section .page-ththao__section-title {
  color: var(--page-ththao-gold-color);
}

.page-ththao__conclusion-section .page-ththao__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__section-title {
    font-size: 2rem;
  }

  .page-ththao__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

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

  .page-ththao__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

  .page-ththao__hero-description {
    font-size: 1rem;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 40px;
  }

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

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-ththao__introduction-section,
  .page-ththao__odds-section,
  .page-ththao__guide-section,
  .page-ththao__faq-section,
  .page-ththao__dark-section {
    padding: 60px 0;
  }

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

  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ththao__hero-image-wrapper,
  .page-ththao__image-content,
  .page-ththao__card-image,
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__cta-buttons,
  .page-ththao__sports-grid,
  .page-ththao__features-grid,
  .page-ththao__promo-cards,
  .page-ththao__video-section,
  .page-ththao__video-container,
  .page-ththao__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-ththao__hero-image {
    width: auto !important; /* Allow object-fit to work better */
    max-width: 100% !important;
    height: 300px !important; /* Fixed height for mobile hero to save space */
    object-fit: cover !important;
  }
  
  .page-ththao__promo-cards, .page-ththao__sports-grid, .page-ththao__features-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .page-ththao__section-title {
    font-size: 1.5rem;
  }
  .page-ththao__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
}