/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background is white from shared.css var(--secondary-color) */
}

.page-the-thao__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__hero-section {
  background-color: #f5f5f5;
  padding: 40px 0;
  text-align: center;
  padding-top: 10px; /* Adhering to 10px top padding for first section */
}

.page-the-thao__main-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-the-thao__btn--register:hover {
  background-color: #e02020;
  color: #ffffff;
}

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

.page-the-thao__btn--login:hover {
  background-color: #e02020;
  color: #ffffff;
}

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

.page-the-thao__btn--primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-the-thao__btn--secondary:hover {
  background-color: #f0f0f0;
}

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

.page-the-thao__btn--download:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-the-thao__section {
  padding: 60px 0;
}

.page-the-thao__section-title {
  font-size: 2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-the-thao__image-figure {
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
}

.page-the-thao__image-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-the-thao__image-caption {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

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

.page-the-thao__sport-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
}

.page-the-thao__sport-card .page-the-thao__image-figure {
  margin: 0 0 20px 0;
  max-width: 100%;
}

.page-the-thao__sport-card .page-the-thao__image-figure img {
  border-radius: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__card-title {
  font-size: 1.4em;
  color: #017439;
  margin: 0 20px 15px 20px;
  font-weight: bold;
}

.page-the-thao__card-text {
  font-size: 0.95em;
  color: #555555;
  margin: 0 20px;
  line-height: 1.6;
}

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

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

.page-the-thao__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__step-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__step-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-the-thao__promo-list,
.page-the-thao__tip-list,
.page-the-thao__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__promo-item,
.page-the-thao__tip-item,
.page-the-thao__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 25px;
  text-align: left;
}

.page-the-thao__promo-title,
.page-the-thao__tip-title,
.page-the-thao__feature-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__promo-text,
.page-the-thao__tip-text,
.page-the-thao__feature-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-the-thao__inline-link {
  color: #017439;
  text-decoration: underline;
}

.page-the-thao__inline-link:hover {
  color: #005a2e;
}

.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__description,
.page-the-thao__dark-section .page-the-thao__feature-title,
.page-the-thao__dark-section .page-the-thao__feature-text {
  color: #ffffff;
}

.page-the-thao__dark-section .page-the-thao__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.page-the-thao__faq-list {
  margin-top: 30px;
}

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  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: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e6ffe6; /* Lighter shade of brand color */
  border-bottom: 1px solid #d0e0d0;
  list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-question .page-the-thao__faq-toggle {
  font-size: 1.5em;
  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: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. Top section title + CTA */
  .page-the-thao__hero-section {
    padding: 30px 0;
    padding-top: 10px !important; /* Fixed 10px top padding */
  }

  .page-the-thao__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px; /* Add padding to content */
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    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-left: 15px;
    padding-right: 15px;
  }

  /* 2. Single column long-form container */
  .page-the-thao__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section {
    padding: 40px 0;
  }

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

  .page-the-thao__text-block {
    font-size: 0.95em;
  }

  /* 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;
  }

  .page-the-thao__image-figure img {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-the-thao__sport-card .page-the-thao__image-figure img {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-the-thao__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__sport-card {
    padding-bottom: 15px;
  }

  .page-the-thao__card-title {
    font-size: 1.2em;
    margin: 0 15px 10px 15px;
  }

  .page-the-thao__card-text {
    font-size: 0.9em;
    margin: 0 15px;
  }

  .page-the-thao__step-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-the-thao__step-title {
    font-size: 1.1em;
  }

  .page-the-thao__promo-item,
  .page-the-thao__tip-item,
  .page-the-thao__feature-item {
    padding: 25px;
    margin-bottom: 20px;
  }

  .page-the-thao__promo-title,
  .page-the-thao__tip-title,
  .page-the-thao__feature-title {
    font-size: 1.1em;
  }

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

  .page-the-thao__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }

  /* 4. Buttons and button containers */
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* 5. Registration tutorial and FAQ blocks (general text readability) */
  .page-the-thao__step-text,
  .page-the-thao__promo-text,
  .page-the-thao__tip-text,
  .page-the-thao__feature-text,
  .page-the-thao__faq-text {
    font-size: 0.95em;
  }
}

/* --- Tablet Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 0 15px;
  }

  .page-the-thao__main-title {
    font-size: 2.2em;
  }

  .page-the-thao__description {
    font-size: 1.05em;
  }

  .page-the-thao__section-title {
    font-size: 1.8em;
  }

  .page-the-thao__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .page-the-thao__btn {
    padding: 10px 25px;
  }
}