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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

/* Color Contrast Classes */
.page-the-thao__dark-bg {
  background: #017439;
  color: #ffffff;
}

.page-the-thao__light-bg {
  background: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
}

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-the-thao__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

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

/* CTA Buttons */
.page-the-thao__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.page-the-thao__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

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

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

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

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

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

/* Intro Section */
.page-the-thao__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Categories Section */
.page-the-thao__categories-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-the-thao__category-img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__category-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #017439;
}

.page-the-thao__category-description {
  font-size: 1em;
  padding: 0 15px;
  text-align: justify;
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__feature-item {
  background: #f9f9f9;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-the-thao__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

.page-the-thao__feature-description {
  font-size: 1em;
  line-height: 1.5;
}

/* Guide Section */
.page-the-thao__guide-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__guide-step {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-the-thao__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: #017439;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  border-radius: 50%;
  margin: 0 auto 20px;
}

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

.page-the-thao__step-description {
  font-size: 1em;
}

/* News Section */
.page-the-thao__news-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__news-card {
  background: #f9f9f9;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-the-thao__news-img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__news-title {
  font-size: 1.3em;
  margin: 15px 15px 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-the-thao__news-link {
  color: #017439;
  text-decoration: none;
}

.page-the-thao__news-link:hover {
  text-decoration: underline;
}

.page-the-thao__news-meta {
  font-size: 0.9em;
  color: #666666;
  margin: 0 15px 10px;
}

.page-the-thao__news-excerpt {
  font-size: 1em;
  margin: 0 15px 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-the-thao__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin: 0 15px 15px;
  align-self: flex-start;
}

.page-the-thao__read-more:hover {
  text-decoration: underline;
}

/* CTA Final Section */
.page-the-thao__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-the-thao__cta-content .page-the-thao__section-title,
.page-the-thao__cta-content .page-the-thao__description {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    gap: 30px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__category-img {
    height: 200px;
  }
  .page-the-thao__news-img {
    
  }
}

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

  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* HERO Section (Mobile) */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
    padding-bottom: 40px;
  }
  .page-the-thao__hero-container {
    flex-direction: column; /* Stack image and content vertically */
    gap: 20px;
    padding: 20px 15px;
  }
  .page-the-thao__hero-content {
    text-align: center;
    width: 100%;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-the-thao__description {
    font-size: 1em;
  }
  .page-the-thao__hero-image {
    width: 100%;
  }

  /* CTA Buttons (Mobile) */
  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__cta-buttons--center {
    padding-left: 0; /* Adjust if center aligned */
    padding-right: 0;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Categories Section (Mobile) */
  .page-the-thao__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__category-img {
    
  }

  /* Why Choose Section (Mobile) */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Guide Section (Mobile) */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* News Section (Mobile) */
  .page-the-thao__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__news-img {
    
  }

  /* General Images (Mobile) */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Content Sections Padding (Mobile) */
  .page-the-thao__intro-section,
  .page-the-thao__categories-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__guide-section,
  .page-the-thao__news-section,
  .page-the-thao__cta-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}