/* style/ththao.css */

/* Custom colors */
: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: #2E7A4E;
  --page-ththao-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ththao-text-light-bg: #333333; /* For light backgrounds */
}

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

/* Sections */
.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;
  text-align: center;
  overflow: hidden;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  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 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

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

.page-ththao__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--page-ththao-text-secondary);
  margin-bottom: 30px;
}

.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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  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: var(--page-ththao-text-main);
  border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-primary-color);
  color: var(--page-ththao-text-main);
  transform: translateY(-2px);
}

.page-ththao__btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

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

.page-ththao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--page-ththao-text-main);
}

.page-ththao__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-ththao-text-secondary);
}

/* Background color variations */
.page-ththao__dark-bg {
  background-color: var(--page-ththao-bg-dark);
  color: var(--page-ththao-text-main);
  padding: 80px 0;
}

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

.page-ththao__light-bg {
  background-color: #f5f5f5; /* Using a light background for contrast */
  color: var(--page-ththao-text-light-bg);
  padding: 80px 0;
}

/* Text contrast fix for light background sections */
.page-ththao__text-contrast-fix {
  color: var(--page-ththao-text-light-bg) !important;
}

.page-ththao__card-light-bg {
  background-color: #ffffff;
  color: var(--page-ththao-text-light-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-ththao__sport-card {
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  border: 1px solid var(--page-ththao-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-ththao__card-text {
  font-size: 0.95rem;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-ththao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-ththao__step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* 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 {
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  border: 1px solid var(--page-ththao-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-ththao__feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Security Section */
.page-ththao__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-ththao__security-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border);
  border-radius: 8px;
  padding: 20px;
  font-size: 1rem;
  color: var(--page-ththao-text-secondary);
}

.page-ththao__security-item strong {
  color: var(--page-ththao-text-main);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

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

.page-ththao__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--page-ththao-text-light-bg);
  background-color: #ffffff;
  border-radius: 10px;
  list-style: none; /* For details/summary */
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-ththao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--page-ththao-text-light-bg);
  background-color: #fcfcfc;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 10px 10px;
}

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

/* CTA Section */
.page-ththao__cta-section {
  text-align: center;
  padding: 100px 20px;
}

/* Responsive Design */

/* All images basic responsive styles */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video basic responsive styles */
.page-ththao video,
.page-ththao__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All video container basic responsive styles */
.page-ththao__video-section,
.page-ththao__video-container,
.page-ththao__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 992px) {
  .page-ththao__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-ththao__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .page-ththao__sports-grid,
  .page-ththao__guide-steps,
  .page-ththao__promo-cards,
  .page-ththao__features-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-ththao__subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 25px;
  }

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

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

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

  .page-ththao__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-ththao__dark-bg,
  .page-ththao__card-bg,
  .page-ththao__light-bg {
    padding: 50px 0;
  }

  /* Mobile specific image adaptation */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile specific video adaptation */
  .page-ththao video,
  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__video-section,
  .page-ththao__video-container,
  .page-ththao__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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

@media (max-width: 480px) {
  .page-ththao__hero-content {
    margin-top: 20px;
  }

  .page-ththao__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-ththao__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .page-ththao__cta-section {
    padding: 60px 20px;
  }
}