/* style/ththao.css */
:root {
  --page-ththao-primary-color: #11A84E;
  --page-ththao-secondary-color: #22C768;
  --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-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ththao-glow: #57E38D;
  --page-ththao-gold: #F2C14E;
  --page-ththao-divider: #1E3A2A;
  --page-ththao-deep-green: #0A4B2C;
}

.page-ththao {
  background-color: var(--page-ththao-background);
  color: var(--page-ththao-text-main);
  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: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-ththao-text-main);
  line-height: 1.2;
}

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

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

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

.page-ththao__btn-primary {
  background: var(--page-ththao-button-gradient);
  color: #ffffff; /* Explicitly white for contrast */
  border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
  box-shadow: 0 0 15px var(--page-ththao-glow);
  transform: translateY(-2px);
}

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

.page-ththao__btn-secondary:hover {
  background: var(--page-ththao-secondary-color);
  color: var(--page-ththao-background);
  box-shadow: 0 0 10px rgba(34, 199, 104, 0.5);
  transform: translateY(-2px);
}

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

.page-ththao__cta-center {
  text-align: center;
  margin-top: 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 */
  padding-bottom: 80px;
  overflow: hidden;
  background-color: var(--page-ththao-background);
}

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

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-ththao__main-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--page-ththao-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-ththao__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--page-ththao-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-ththao__intro-section {
  padding: 80px 0;
  background-color: var(--page-ththao-light-bg, #ffffff);
  color: var(--page-ththao-dark-text, #333333);
}

.page-ththao__intro-section .page-ththao__text-block {
  color: var(--page-ththao-dark-text, #333333);
}

.page-ththao__intro-section .page-ththao__section-title {
  color: var(--page-ththao-dark-text, #333333);
}

/* Features Section */
.page-ththao__features-section {
  padding: 80px 0;
  background-color: var(--page-ththao-card-bg);
}

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

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

.page-ththao__feature-card:hover {
  transform: translateY(-10px);
}

.page-ththao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

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

/* Guide Section */
.page-ththao__guide-section {
  padding: 80px 0;
  background-color: var(--page-ththao-light-bg, #ffffff);
  color: var(--page-ththao-dark-text, #333333);
}

.page-ththao__guide-section .page-ththao__section-title {
  color: var(--page-ththao-dark-text, #333333);
}

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

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

.page-ththao__step-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--page-ththao-text-main);
  margin-bottom: 15px;
}

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

/* Sports Types Section */
.page-ththao__sports-types-section {
  padding: 80px 0;
  background-color: var(--page-ththao-background);
}

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

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

.page-ththao__sport-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 2px solid var(--page-ththao-secondary-color);
}

.page-ththao__sport-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--page-ththao-text-main);
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-ththao__promotions-section {
  padding: 80px 0;
  background-color: var(--page-ththao-light-bg, #ffffff);
  color: var(--page-ththao-dark-text, #333333);
}

.page-ththao__promotions-section .page-ththao__section-title {
  color: var(--page-ththao-dark-text, #333333);
}

.page-ththao__promotions-section .page-ththao__text-block {
  color: var(--page-ththao-dark-text, #333333);
}

.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-card-bg, #f0f0f0);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--page-ththao-border);
}

.page-ththao__promo-card .page-ththao__card-title {
  color: var(--page-ththao-text-main);
}

.page-ththao__promo-card .page-ththao__card-text {
  color: var(--page-ththao-text-secondary);
}

/* Security Section */
.page-ththao__security-section {
  padding: 80px 0;
  background-color: var(--page-ththao-card-bg);
}

.page-ththao__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ththao__security-image {
  flex: 1 1 300px;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__security-text {
  flex: 2 1 400px;
}

.page-ththao__security-text .page-ththao__text-block {
  text-align: left;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 80px 0;
  background-color: var(--page-ththao-light-bg, #ffffff);
  color: var(--page-ththao-dark-text, #333333);
}

.page-ththao__faq-section .page-ththao__section-title {
  color: var(--page-ththao-dark-text, #333333);
}

.page-ththao__faq-list {
  margin-top: 40px;
}

.page-ththao__faq-item {
  background-color: var(--page-ththao-card-bg, #f8f8f8);
  border: 1px solid var(--page-ththao-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-ththao-text-main);
}

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

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

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

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

.page-ththao__faq-answer {
  padding: 20px;
  border-top: 1px solid var(--page-ththao-divider);
  background-color: var(--page-ththao-card-bg);
  color: var(--page-ththao-text-secondary);
  font-size: 1rem;
}

/* Final CTA Section */
.page-ththao__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-ththao-background);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
  }

  .page-ththao__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
  }

  .page-ththao__feature-card {
    padding: 25px;
  }

  .page-ththao__card-title {
    font-size: 1.4rem;
  }

  .page-ththao__sport-item {
    padding: 20px;
  }

  .page-ththao__sport-icon {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding: 0 15px;
  }

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

  .page-ththao__hero-image-wrapper {
    margin-bottom: 30px;
  }

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

  .page-ththao__subtitle {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .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 !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-ththao__text-block {
    font-size: 1rem;
  }

  .page-ththao__features-grid,
  .page-ththao__guide-steps,
  .page-ththao__sports-grid,
  .page-ththao__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__feature-card,
  .page-ththao__step-card,
  .page-ththao__promo-card {
    padding: 20px;
  }

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

  .page-ththao__security-content {
    flex-direction: column;
  }

  .page-ththao__security-image {
    max-width: 100%;
  }

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

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__sport-icon {
    width: 80px;
    height: 80px;
  }

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

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

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .page-ththao__subtitle {
    font-size: clamp(0.9rem, 4.5vw, 1rem);
  }

  .page-ththao__hero-section {
    padding-bottom: 40px;
  }

  .page-ththao__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

/* Color Contrast Fixes for Light Backgrounds */
.page-ththao__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-ththao__light-bg .page-ththao__text-block,
.page-ththao__light-bg .page-ththao__card-text,
.page-ththao__light-bg .page-ththao__step-text,
.page-ththao__light-bg .page-ththao__faq-answer {
  color: #333333;
}

.page-ththao__light-bg .page-ththao__section-title,
.page-ththao__light-bg .page-ththao__card-title,
.page-ththao__light-bg .page-ththao__step-title {
  color: #000000;
}

.page-ththao__light-bg .page-ththao__btn-secondary {
  color: var(--page-ththao-primary-color);
  border-color: var(--page-ththao-primary-color);
}

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

/* Dark Backgrounds (using custom colors) */
.page-ththao__dark-bg {
  background-color: var(--page-ththao-background);
  color: var(--page-ththao-text-main);
}

.page-ththao__dark-section {
  background-color: var(--page-ththao-card-bg);
  color: var(--page-ththao-text-main);
}

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

.page-ththao__dark-section .page-ththao__card {
  background-color: var(--page-ththao-deep-green);
}

.page-ththao__dark-section .page-ththao__sport-item {
  background-color: var(--page-ththao-deep-green);
}