/* style/ththao.css */

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

/* Sections */
.page-ththao__section {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__section-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: var(--text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-ththao__text-block {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: var(--text-secondary);
}

.page-ththao__text-secondary {
  color: var(--text-secondary);
}

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

/* Dark background sections for contrast */
.page-ththao__dark-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-ththao__dark-bg .page-ththao__section-title {
  color: var(--text-main);
}

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

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles top padding, only small decorative top padding here */
  min-height: 600px; /* Ensure sufficient height */
  background-color: var(--background);
}

.page-ththao__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  order: 1; /* Image first */
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
}

.page-ththao__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  order: 2; /* Content second */
}

.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--glow);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-ththao__hero-description {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

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

.page-ththao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

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

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

.page-ththao__small-btn {
  padding: 10px 20px;
  font-size: 1rem;
  margin-top: 20px;
}

.page-ththao__large-btn {
  padding: 18px 40px;
  font-size: 1.3rem;
  margin-top: 40px;
}

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

/* Cards */
.page-ththao__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.page-ththao__card:hover {
  transform: translateY(-5px);
}

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

.page-ththao__card-title {
  font-size: 1.6rem;
  color: var(--glow);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-ththao__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  flex-grow: 1; /* Allow text to fill space */
}

/* Feature List */
.page-ththao__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ththao__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__feature-title {
  font-size: 1.5rem;
  color: var(--glow);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ththao__feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Get Started Steps */
.page-ththao__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__step-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-ththao__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 15px;
  background-color: var(--deep-green);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-ththao__step-title {
  font-size: 1.6rem;
  color: var(--glow);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ththao__step-description {
  font-size: 1rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Safety Section */
.page-ththao__safety-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-ththao__faq-item[open] .page-ththao__faq-question {
  background-color: var(--deep-green);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

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

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  color: var(--glow);
  margin-left: 15px;
}

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

/* Conclusion Section */
.page-ththao__conclusion .page-ththao__text-block {
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 1000px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__section {
    padding: 60px 0;
  }

  .page-ththao__section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .page-ththao__hero-image {
    max-height: 500px;
  }

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

  .page-ththao__hero-description {
    font-size: 1.1rem;
  }

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

  .page-ththao__feature-title,
  .page-ththao__step-title {
    font-size: 1.3rem;
  }

  .page-ththao__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }
}

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

  .page-ththao__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-ththao__hero-section {
    padding: 10px 0 40px 0;
    min-height: 450px;
  }

  .page-ththao__hero-image {
    max-height: 350px;
  }

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

  .page-ththao__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  /* Image responsive */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ththao__container,
  .page-ththao__hero-content,
  .page-ththao__grid-layout,
  .page-ththao__promo-grid,
  .page-ththao__feature-list,
  .page-ththao__step-by-step,
  .page-ththao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Button responsive */
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .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-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-ththao__cta-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-ththao__step-item a.page-ththao__btn-primary {
    width: auto !important;
    max-width: fit-content !important; /* Allow small buttons to not stretch */
  }

  .page-ththao__card {
    padding: 20px;
  }

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

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

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

  .page-ththao__feature-title,
  .page-ththao__step-title {
    font-size: 1.2rem;
  }

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

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

@media (max-width: 480px) {
  .page-ththao__section-title {
    font-size: 1.6rem;
  }

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

  .page-ththao__hero-section {
    min-height: 400px;
  }

  .page-ththao__hero-image {
    max-height: 250px;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-ththao__card-title,
  .page-ththao__feature-title,
  .page-ththao__step-title {
    font-size: 1.1rem;
  }

  .page-ththao__step-number {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}