:root {
  --color-primary: #C61F1F;
  --color-secondary: #E53030;
  --color-card-bg: #2A1212;
  --color-background-main: #140C0C;
  --color-text-main: #FFF1E8;
  --color-border: #6A1E1E;
  --color-gold: #F3C54D;
  --color-deep-red: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Text color for the main page content */
  background-color: var(--color-background-main);
  padding-bottom: 50px;
}

.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.page-the-thao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-the-thao__hero-content {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image for visual effect, but not text on image */
  position: relative;
  z-index: 1;
}

.page-the-thao__hero-title {
  font-size: clamp(2.2em, 3.5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  color: var(--color-text-main);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-the-thao__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-the-thao__btn--primary {
  background: var(--button-gradient);
  color: var(--color-text-main); /* White text on gradient button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

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

.page-the-thao__btn--secondary {
  background: var(--color-deep-red);
  color: var(--color-text-main);
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 15px rgba(229, 48, 48, 0.4);
}

.page-the-thao__btn--secondary:hover {
  background: var(--color-gold);
  color: var(--color-background-main);
  transform: translateY(-2px);
}

.page-the-thao__btn--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--color-text-main);
}

.page-the-thao__main-content {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__section-title {
  font-size: 2.2em;
  color: var(--color-gold);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
}

.page-the-thao h3 {
  font-size: 1.6em;
  color: var(--color-gold);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao p {
  margin-bottom: 1em;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--color-text-main);
}

.page-the-thao__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 1.5em;
  color: var(--color-text-main);
}

.page-the-thao__list li {
  margin-bottom: 0.8em;
  font-size: 1.05em;
}

.page-the-thao__list li strong {
  color: var(--color-gold);
}

.page-the-thao__figure {
  margin: 30px 0;
  text-align: center;
}

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

.page-the-thao__figcaption {
  font-size: 0.9em;
  color: rgba(255, 241, 232, 0.7);
  margin-top: 10px;
}

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

.page-the-thao__step-card {
  background-color: var(--color-background-main);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-the-thao__step-title {
  color: var(--color-gold);
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-the-thao__step-card p {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__inline-link {
  color: var(--color-gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-the-thao__inline-link:hover {
  color: var(--color-primary);
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

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

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

  .page-the-thao h3 {
    font-size: 1.5em;
  }

  .page-the-thao__main-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    margin-bottom: 20px;
  }

  .page-the-thao__hero-image-wrapper {
    padding-bottom: 75%; /* More square aspect ratio for mobile */
  }

  .page-the-thao__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important; /* Smaller H1 for mobile */
    line-height: 1.3;
  }

  .page-the-thao__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
    width: 100%;
    box-sizing: border-box;
  }

  .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 text container */
  .page-the-thao__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__main-content {
    padding: 25px 15px;
  }

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

  .page-the-thao h3 {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .page-the-thao p,
  .page-the-thao__list li {
    font-size: 0.95em;
    line-height: 1.6;
  }

  .page-the-thao__list {
    margin-left: 20px;
  }

  /* 3. General images and figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__figure {
    margin: 20px 0;
  }

  /* 4. Buttons and button containers */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__step-card {
    padding: 20px;
  }

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

  .page-the-thao__step-card p {
    font-size: 0.9em;
  }

  /* 5. Registration tutorial and FAQ blocks (covered by general content rules for h3/p) */
  /* No explicit FAQ block with JS needed */
}