/* 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: #2E7A4E;
  --page-ththao-glow: #57E38D;
  --page-ththao-gold: #F2C14E;
  --page-ththao-divider: #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);
}

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

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

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  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 {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-ththao__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-ththao-gold);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem); /* Use clamp for H1 */
}

.page-ththao__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 30px;
}

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

/* Video Section */
.page-ththao__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-ththao-background);
}

.page-ththao__video-container {
  width: 100%; /* Desktop: width 100% required alongside max-width */
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.page-ththao__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: var(--page-ththao-card-bg);
  border-radius: 12px;
}

.page-ththao__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  border-radius: 12px;
}

.page-ththao__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1;
  border-radius: 12px;
}

.page-ththao__video-play-button {
  font-size: 3rem;
  color: #fff;
  background: var(--page-ththao-button-gradient);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.page-ththao__video-play-button:hover {
  transform: scale(1.1);
}

.page-ththao__video-caption {
  text-align: center;
  margin-top: 20px;
  max-width: 800px;
  padding: 0 20px;
}

.page-ththao__video-title {
  color: var(--page-ththao-text-main);
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-ththao__video-description {
  color: var(--page-ththao-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* General Section Styles */
.page-ththao__section {
  padding: 60px 0;
  text-align: center;
}

.page-ththao__section-title {
  font-size: 2.5rem;
  color: var(--page-ththao-text-main);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-ththao__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--page-ththao-text-secondary);
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: left;
}

.page-ththao__text-block strong {
  color: var(--page-ththao-text-main);
}

.page-ththao__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Dark Background Sections */
.page-ththao__dark-bg {
  background-color: var(--page-ththao-deep-green);
  color: var(--page-ththao-text-main);
}

.page-ththao__dark-bg .page-ththao__section-title {
  color: var(--page-ththao-gold);
}

.page-ththao__dark-bg .page-ththao__text-block {
  color: var(--page-ththao-text-secondary);
}

/* Card Styles */
.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--page-ththao-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-ththao__card-title {
  font-size: 1.5rem;
  color: var(--page-ththao-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ththao__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 20px;
}

/* Button Styles */
.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-ththao__btn-secondary:hover {
  background: var(--page-ththao-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-ththao__btn-tertiary {
  background-color: var(--page-ththao-deep-green);
  color: var(--page-ththao-text-main);
  border: 1px solid var(--page-ththao-border);
  font-size: 0.9rem;
  padding: 8px 15px;
  margin-top: auto; /* Push to bottom of card */
}

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

.page-ththao__btn-large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

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

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

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

.page-ththao__feature-item .page-ththao__card-title {
  color: var(--page-ththao-gold);
}

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

.page-ththao__promo-card .page-ththao__card-image {
  height: 220px;
}

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

.page-ththao__step-item .page-ththao__card-title {
  color: var(--page-ththao-gold);
}

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

.page-ththao__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--page-ththao-border);
  border-radius: 12px;
  background-color: var(--page-ththao-card-bg);
  color: var(--page-ththao-text-main);
  text-align: left;
  padding: 0; /* Reset padding for details element */
}

.page-ththao__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-ththao-text-main);
}

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-ththao__faq-qtext {
  flex-grow: 1;
  color: var(--page-ththao-text-main);
}

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

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

.page-ththao__faq-answer p {
  margin-bottom: 10px;
}

.page-ththao__faq-answer a {
  color: var(--page-ththao-primary-color);
  text-decoration: underline;
}

.page-ththao__faq-answer a:hover {
  color: var(--page-ththao-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: clamp(2rem, 5vw + 1rem, 3rem);
  }
  .page-ththao__section-title {
    font-size: 2rem;
  }
  .page-ththao__hero-content {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-ththao__main-title {
    font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem);
  }
  .page-ththao__section-title {
    font-size: 1.8rem;
  }
  .page-ththao__text-block,
  .page-ththao__hero-description,
  .page-ththao__card-description,
  .page-ththao__faq-answer p {
    font-size: 1rem;
  }
  .page-ththao__hero-section,
  .page-ththao__video-section,
  .page-ththao__section {
    padding: 30px 0;
  }
  .page-ththao__hero-content,
  .page-ththao__video-caption {
    padding: 0 15px;
  }

  /* Responsive Images */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure content images take full width */
    height: auto !important;
    display: block !important;
  }
  
  /* Responsive Video */
  .page-ththao video,
  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Responsive Containers */
  .page-ththao__container,
  .page-ththao__hero-section,
  .page-ththao__video-section,
  .page-ththao__video-container,
  .page-ththao__video-wrapper,
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__sports-grid,
  .page-ththao__features-grid,
  .page-ththao__promo-grid,
  .page-ththao__steps-grid,
  .page-ththao__faq-list,
  .page-ththao__hero-cta-buttons,
  .page-ththao__cta-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Responsive Buttons */
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-tertiary,
  .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: 12px 15px !important;
  }

  .page-ththao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-ththao__video-section {
    padding-top: 10px !important; /* Body handles header offset */
  }

  .page-ththao__video-play-button {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .page-ththao__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-ththao__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-ththao__section-title {
    font-size: 1.5rem;
  }
  .page-ththao__card-title {
    font-size: 1.3rem;
  }
  .page-ththao__faq-qtext {
    font-size: 0.95rem;
  }
  .page-ththao__faq-toggle {
    font-size: 1.5rem;
  }
}