/* style/ththao.css */

/* Base styles for the page */
.page-ththao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default light text for dark background */
  background-color: var(--bg-color, #08160F); /* Assume dark background from custom colors */
}

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

.page-ththao__dark-bg {
  background-color: var(--bg-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-ththao__light-bg {
  background-color: #11271B; /* Using Card BG for light sections to ensure contrast on dark body */
  color: var(--text-main, #F2FFF6);
}

.page-ththao__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__text-center {
  text-align: center;
}

/* Headings */
.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  text-align: center;
}

.page-ththao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  color: var(--glow, #57E38D);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-ththao h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--border, #2E7A4E);
  margin-left: 15px;
}

.page-ththao__btn-secondary:hover {
  background-color: var(--border, #2E7A4E);
  color: #ffffff;
}

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

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

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

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 40px;
}

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

.page-ththao__hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-ththao__description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-ththao__intro-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-ththao__feature-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border, #2E7A4E);
}

.page-ththao__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-ththao__feature-title {
  color: var(--glow, #57E38D);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-ththao__feature-description {
  color: var(--text-secondary, #A7D9B8);
}

/* Sports Types Section */
.page-ththao__sports-types {
  padding: 80px 0;
  text-align: center;
}

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

.page-ththao__sport-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
}

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

.page-ththao__sport-card > div {
  padding: 25px;
}

.page-ththao__sport-title {
  color: var(--glow, #57E38D);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-ththao__sport-description {
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
}

/* Features Section (Detail) */
.page-ththao__features-section {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-ththao__feature-item-detail {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border, #2E7A4E);
}

.page-ththao__feature-detail-title {
  color: var(--glow, #57E38D);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-ththao__feature-detail-description {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
}

/* Guide Section */
.page-ththao__guide-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-ththao__guide-step-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ththao__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: var(--deep-green, #0A4B2C);
  color: var(--gold, #F2C14E);
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  border: 2px solid var(--gold, #F2C14E);
}

.page-ththao__step-title {
  color: var(--glow, #57E38D);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-ththao__step-description {
  color: var(--text-secondary, #A7D9B8);
}

/* Promotions Section */
.page-ththao__promotions-section {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-ththao__promo-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
}

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

.page-ththao__promo-card > div {
  padding: 25px;
  flex-grow: 1;
}

.page-ththao__promo-title {
  color: var(--glow, #57E38D);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-ththao__promo-description {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ththao__promo-card .page-ththao__btn-secondary {
  margin-left: 0;
  width: fit-content;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 80px 0;
}

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

.page-ththao__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none; /* For <details> summary */
}

.page-ththao__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow, #57E38D);
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: '−'; /* Change to minus when open for <details> */
}

.page-ththao__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
}

/* Contact CTA Section */
.page-ththao__contact-cta {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-ththao__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-ththao__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-ththao h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-ththao {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-ththao__container {
    padding: 0 15px;
  }
  .page-ththao__hero-section {
    padding: 10px 15px 40px;
  }
  .page-ththao__hero-image {
    border-radius: 5px;
  }
  .page-ththao__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-ththao__description {
    font-size: 1em;
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 1em !important;
  }
  
  /* Image responsive rules */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__hero-section,
  .page-ththao__intro-section,
  .page-ththao__sports-types,
  .page-ththao__features-section,
  .page-ththao__guide-section,
  .page-ththao__promotions-section,
  .page-ththao__faq-section,
  .page-ththao__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-ththao__feature-grid,
  .page-ththao__sports-grid,
  .page-ththao__guide-steps,
  .page-ththao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ththao__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-ththao__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }
  .page-ththao__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-ththao h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }
  .page-ththao__hero-section,
  .page-ththao__intro-section,
  .page-ththao__sports-types,
  .page-ththao__features-section,
  .page-ththao__guide-section,
  .page-ththao__promotions-section,
  .page-ththao__faq-section,
  .page-ththao__contact-cta {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}