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

.page-ththao {
  font-family: Arial, sans-serif;
  color: var(--page-ththao-text-main);
  background-color: var(--page-ththao-background);
  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.5em;
  color: var(--page-ththao-text-main);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-ththao__section-description {
  text-align: center;
  color: var(--page-ththao-text-secondary);
  font-size: 1.1em;
  margin-bottom: 40px;
}

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

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability below */
}

.page-ththao__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: rgba(17, 40, 27, 0.85); /* Semi-transparent dark green background */
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image slightly for visual flow */
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-ththao__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: var(--page-ththao-gold-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-button-gradient);
  color: #ffffff;
  border: 2px solid var(--page-ththao-glow-color);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
  filter: brightness(1.1);
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--page-ththao-glow-color);
  border: 2px solid var(--page-ththao-glow-color);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-glow-color);
  color: var(--page-ththao-card-bg);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-ththao__btn-tertiary {
  background-color: var(--page-ththao-deep-green);
  color: var(--page-ththao-text-main);
  border: 1px solid var(--page-ththao-border-color);
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 5px;
}

.page-ththao__btn-tertiary:hover {
  background-color: var(--page-ththao-primary-color);
  border-color: var(--page-ththao-primary-color);
  color: #ffffff;
}

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

.page-ththao__btn-large {
  padding: 16px 32px;
  font-size: 1.2em;
}

/* Why Choose Us Section */
.page-ththao__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--page-ththao-background);
}

.page-ththao__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-ththao__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-ththao__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

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

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

/* Featured Sports Section */
.page-ththao__featured-sports-section {
  padding: 80px 0;
  background-color: var(--page-ththao-deep-green);
}

.page-ththao__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ththao__sport-card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  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;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-ththao__sport-text {
  color: var(--page-ththao-text-secondary);
  font-size: 0.9em;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* How To Play Section */
.page-ththao__how-to-play-section {
  padding: 80px 0;
  background-color: var(--page-ththao-background);
}

.page-ththao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

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

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

/* Tips Section */
.page-ththao__tips-section {
  padding: 80px 0;
  background-color: var(--page-ththao-deep-green);
}

.page-ththao__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-ththao__tip-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--page-ththao-text-secondary);
  font-size: 1em;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

/* FAQ Section */
.page-ththao__faq-section {
  padding: 80px 0;
  background-color: var(--page-ththao-background);
}

.page-ththao__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-ththao-text-main);
  cursor: pointer;
  background-color: var(--page-ththao-deep-green);
  border-bottom: 1px solid var(--page-ththao-divider-color);
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
  border-bottom: 1px solid var(--page-ththao-border-color);
}

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

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-ththao-gold-color);
}

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

/* Call To Action Section */
.page-ththao__call-to-action-section {
  padding: 80px 0;
  background-color: var(--page-ththao-deep-green);
  text-align: center;
}

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

.page-ththao__call-to-action-section .page-ththao__section-description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: clamp(2.2em, 5vw, 3em);
  }
  .page-ththao__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-bottom: 40px;
  }
  .page-ththao__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }
  .page-ththao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-ththao__hero-description {
    font-size: 1em;
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ththao__btn-primary, .page-ththao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-ththao__section-title {
    font-size: 2em;
  }
  .page-ththao__section-description {
    font-size: 0.95em;
  }
  .page-ththao__why-choose-us-section,
  .page-ththao__featured-sports-section,
  .page-ththao__how-to-play-section,
  .page-ththao__tips-section,
  .page-ththao__faq-section,
  .page-ththao__call-to-action-section {
    padding: 50px 0;
  }
  .page-ththao__container {
    padding: 0 15px !important;
  }
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ththao__hero-image-wrapper,
  .page-ththao__feature-card,
  .page-ththao__sport-card,
  .page-ththao__step-card,
  .page-ththao__tip-item,
  .page-ththao__faq-item,
  .page-ththao__cta-bottom,
  .page-ththao__cta-buttons,
  .page-ththao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-ththao__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-ththao__faq-answer {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-ththao__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }
  .page-ththao__section-title {
    font-size: 1.8em;
  }
  .page-ththao__feature-title,
  .page-ththao__sport-title,
  .page-ththao__step-title {
    font-size: 1.3em;
  }
}