/* style/the-thao.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main: #1F2D3D;
  --text-dark: #000000;
  --bg-card: #FFFFFF;
  --bg-page: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--bg-page);
}

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

.page-the-thao__top-section {
  padding-top: 10px; /* Rely on shared.css for body padding-top */
  padding-bottom: 60px;
  background: var(--primary-color);
  color: #ffffff; /* White text for dark background */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 800px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-the-thao__subtitle {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 900px;
  opacity: 0.9;
}

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

.page-the-thao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-secondary {
  background: var(--bg-card);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.page-the-thao__section {
  padding: 60px 0;
  background-color: var(--bg-page);
}

.page-the-thao__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-the-thao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-the-thao__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  margin-bottom: 25px;
  color: var(--text-main);
  line-height: 1.7;
}

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

.page-the-thao__step-list {
  list-style-type: decimal;
}

.page-the-thao__list-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-the-thao__list-item strong {
  color: var(--primary-color);
}

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

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

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

.page-the-thao__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-the-thao__text-link:hover {
  color: var(--secondary-color);
}

.page-the-thao__button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

  /* 1. Top section (title + CTA) */
  .page-the-thao__top-section {
    padding-top: 10px !important; /* Fixed 10px top padding for mobile */
    padding-bottom: 40px;
  }

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

  .page-the-thao__subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-the-thao__top-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 4. Buttons and button containers */
  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__button-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 2. Single column long-form container */
  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__article-wrap {
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__section-title::after {
    width: 60px;
    height: 3px;
  }

  .page-the-thao__text-block,
  .page-the-thao__list-item {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .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;
    box-sizing: border-box !important;
  }

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

  /* 5. Registration tutorial & FAQ blocks - Not explicitly in outline for this page, so no specific styles needed beyond general text/list adjustments */
}

/* --- General Image & Container Sizing for Mobile --- */
@media (max-width: 768px) {
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* --- Color Contrast Classes (for dynamic application) --- */
.page-the-thao__dark-bg {
  color: #ffffff;
  background: var(--primary-color);
}

.page-the-thao__light-bg {
  color: var(--text-main);
  background: var(--bg-page);
}

.page-the-thao__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}