/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity */
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #017439; /* Brand green for hero background */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-the-thao__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 400px; /* Limit button group width */
  margin: 0 auto;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Important for mobile */
  box-sizing: border-box; /* Important for mobile */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-the-thao__btn--primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-the-thao__btn--primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-the-thao__btn--secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-the-thao__btn--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-the-thao__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-the-thao__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-the-thao__features-grid,
.page-the-thao__sport-categories,
.page-the-thao__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-the-thao__feature-item,
.page-the-thao__sport-card,
.page-the-thao__promo-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-the-thao__dark-section .page-the-thao__feature-item,
.page-the-thao__dark-section .page-the-thao__sport-card,
.page-the-thao__dark-section .page-the-thao__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-the-thao__feature-item:hover,
.page-the-thao__sport-card:hover,
.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__feature-title,
.page-the-thao__sport-title,
.page-the-thao__promo-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-the-thao__dark-section .page-the-thao__feature-title,
.page-the-thao__dark-section .page-the-thao__sport-title,
.page-the-thao__dark-section .page-the-thao__promo-title {
  color: #ffffff;
}

.page-the-thao__feature-description,
.page-the-thao__sport-description,
.page-the-thao__promo-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-the-thao__sport-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.page-the-thao__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__text-block {
  color: #ffffff;
}

.page-the-thao__image-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__image-caption {
  font-style: italic;
  font-size: 0.9rem;
  color: #666666;
  margin-top: 10px;
}

.page-the-thao__dark-section .page-the-thao__image-caption {
  color: #cccccc;
}

.page-the-thao__tutorial-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-the-thao__step-card {
  background-color: #f8f8f8;
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__step-number {
  position: absolute;
  top: -15px;
  left: 15px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-the-thao__step-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
  margin-top: 15px;
}

.page-the-thao__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-the-thao__step-description a {
  color: #017439;
  text-decoration: underline;
}

.page-the-thao__step-description a:hover {
  color: #005f2e;
}

.page-the-thao__cta-center {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-the-thao__promo-box {
  background-color: #f0fdf5;
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  border: 1px solid #d0f0d0;
}

.page-the-thao__promo-box .page-the-thao__section-title {
  color: #017439;
}

.page-the-thao__promo-box .page-the-thao__text-block {
  color: #333333;
}

.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-the-thao__tips-list li {
  background-color: #f8f8f8;
  border-left: 4px solid #017439;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-the-thao__tips-list li strong {
  color: #017439;
}

/* FAQ Section */
.page-the-thao__faq-section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-the-thao__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0fdf5;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For <summary> */
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-the-thao__faq-question .page-the-thao__faq-qtext {
  flex-grow: 1;
}

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

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

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

.page-the-thao__faq-answer p {
  margin-bottom: 0;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-the-thao__article-wrap {
    padding: 30px 20px;
  }

  .page-the-thao__section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .page-the-thao__description {
    font-size: 1rem;
  }

  .page-the-thao__btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-the-thao__hero-content {
    margin: 15px auto 30px;
    padding: 0 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    padding: 0 15px;
  }

  .page-the-thao__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;
    font-size: 0.95rem;
  }

  /* 2. Single column long text container */
  .page-the-thao__article-wrap {
    padding: 25px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-the-thao__text-block {
    font-size: 0.9rem;
  }

  .page-the-thao__features-grid,
  .page-the-thao__sport-categories,
  .page-the-thao__promo-grid,
  .page-the-thao__tutorial-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__sport-card,
  .page-the-thao__promo-card,
  .page-the-thao__step-card {
    padding: 20px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__sport-title,
  .page-the-thao__promo-title,
  .page-the-thao__step-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-the-thao__feature-description,
  .page-the-thao__sport-description,
  .page-the-thao__promo-description,
  .page-the-thao__step-description {
    font-size: 0.85rem;
  }

  .page-the-thao__sport-list {
    font-size: 0.85rem;
  }

  .page-the-thao__promo-box {
    padding: 30px 15px;
  }

  .page-the-thao__tips-list li {
    font-size: 0.9rem;
    padding: 12px 15px;
  }

  /* 3. Generic images and figures */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__image-figure {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__image-caption {
    font-size: 0.85rem;
  }

  /* 4. Buttons and button containers (already covered in top section, but reinforce) */
  .page-the-thao__cta-center {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  /* 5. FAQ blocks */
  .page-the-thao__faq-section {
    margin-top: 30px;
    margin-bottom: 30px;
  }

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

  .page-the-thao__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9rem;
  }
}