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

.page-the-thao-giai-dau__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
  margin-bottom: 40px;
}

.page-the-thao-giai-dau__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-the-thao-giai-dau__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: #ffffff;
  text-align: center;
  max-width: 1150px;
  margin: 0 auto;
}

.page-the-thao-giai-dau__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

.page-the-thao-giai-dau__hero-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao-giai-dau__hero-cta-buttons,
.page-the-thao-giai-dau__cta-buttons-bottom {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-the-thao-giai-dau__btn-primary,
.page-the-thao-giai-dau__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao-giai-dau__btn-primary {
  background-color: #C30808; /* Custom color for Đăng Ký/Đăng Nhập */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-the-thao-giai-dau__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #f0f000;
}

.page-the-thao-giai-dau__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-the-thao-giai-dau__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-the-thao-giai-dau__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-the-thao-giai-dau__section {
  margin-bottom: 40px;
  padding: 20px 0;
}

.page-the-thao-giai-dau__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-the-thao-giai-dau__section-title {
  font-size: clamp(24px, 3.5vw, 38px); /* Responsive font size */
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-the-thao-giai-dau__sub-title {
  font-size: clamp(20px, 2.5vw, 28px); /* Responsive font size */
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao-giai-dau p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
}

.page-the-thao-giai-dau__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 800px;
}

.page-the-thao-giai-dau__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao-giai-dau__figcaption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

.page-the-thao-giai-dau__text-center {
  text-align: center;
}

.page-the-thao-giai-dau__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao-giai-dau__main-title {
    font-size: clamp(26px, 5vw, 42px);
  }
  .page-the-thao-giai-dau__hero-description {
    font-size: 1em;
  }
  .page-the-thao-giai-dau__section-title {
    font-size: clamp(22px, 4vw, 34px);
  }
  .page-the-thao-giai-dau__sub-title {
    font-size: clamp(18px, 3vw, 26px);
  }
  .page-the-thao-giai-dau__btn-large {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-the-thao-giai-dau__hero-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + CTAs */
  .page-the-thao-giai-dau__hero-section {
    padding-top: 10px !important; /* Small top padding, shared.css handles body padding */
  }
  .page-the-thao-giai-dau__main-title {
    font-size: clamp(24px, 6vw, 36px) !important;
  }
  .page-the-thao-giai-dau__hero-description {
    font-size: 0.95em !important;
  }
  .page-the-thao-giai-dau__hero-cta-buttons,
  .page-the-thao-giai-dau__cta-buttons-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  /* 2. Single column long text containers */
  .page-the-thao-giai-dau__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao-giai-dau__section-title {
    font-size: clamp(20px, 5vw, 30px) !important;
    margin-bottom: 20px !important;
  }
  .page-the-thao-giai-dau__sub-title {
    font-size: clamp(18px, 4.5vw, 24px) !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }
  .page-the-thao-giai-dau p {
    font-size: 1em !important;
  }

  /* 3. General images and figure */
  .page-the-thao-giai-dau img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao-giai-dau__figure {
    margin: 20px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao-giai-dau__figcaption {
    font-size: 0.85em !important;
  }
  .page-the-thao-giai-dau__hero-image {
    filter: brightness(0.6) !important; /* Slightly more darken for small screens */
  }

  /* 4. Buttons and button containers */
  .page-the-thao-giai-dau__btn-primary,
  .page-the-thao-giai-dau__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-the-thao-giai-dau__hero-cta-buttons,
  .page-the-thao-giai-dau__cta-buttons-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .page-the-thao-giai-dau__cta-buttons-bottom {
    display: flex;
    flex-direction: column;
  }

  /* 5. Registration tutorial & FAQ (Not present in this specific page, but general rule for long-form content) */
  /* If there were any specific tutorial steps or FAQ items, their padding, font-size, image sizes would be adjusted here. */
  .page-the-thao-giai-dau__cta-text {
    font-size: 1.1em !important;
    padding: 0 15px;
  }
}