.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--card-bg, #08162B); /* Deep Navy as body background if shared provides */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #08162B; /* Deep Navy */
}

.page-the-thao__hero-image-wrap {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  max-width: 900px;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-the-thao__lead-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 67, 166, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(17, 67, 166, 0.6);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: #4FA8FF; /* Glow */
  border: 2px solid #4FA8FF; /* Glow */
}

.page-the-thao__btn-secondary:hover {
  background: rgba(79, 168, 255, 0.1);
  color: #ffffff;
}

.page-the-thao__section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy */
}

.page-the-thao__section:nth-of-type(even) {
  background-color: #10233F; /* Card BG */
}

.page-the-thao__dark-section {
  background-color: #113B7A;
  color: #F3F8FF;
}

.page-the-thao__light-text {
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__paragraph {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__feature-grid, .page-the-thao__sport-categories, .page-the-thao__promo-grid, .page-the-thao__tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__card {
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__light-bg {
  background-color: #F3F8FF; /* Text Main - as background */
  color: #113B7A; /* Primary color as text */
}

.page-the-thao__light-bg .page-the-thao__card-title, .page-the-thao__light-bg .page-the-thao__step-title {
  color: #113B7A; /* Primary color */
}

.page-the-thao__light-bg .page-the-thao__card-text, .page-the-thao__light-bg .page-the-thao__step-text {
  color: #333333; /* Dark text for readability on light background */
}

.page-the-thao__card-title, .page-the-thao__step-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-the-thao__card-text, .page-the-thao__step-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #AFC4E8; /* Text Secondary */
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px;
}

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

.page-the-thao__guide-item {
  text-align: left;
  padding: 25px;
  border-radius: 10px;
  background-color: #1D5FD1; /* Auxiliary color */
  color: #F3F8FF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-the-thao__guide-item.page-the-thao__light-bg {
  background-color: #ffffff; /* White background for contrast */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-the-thao__guide-item.page-the-thao__light-bg .page-the-thao__step-title {
  color: #113B7A;
}

.page-the-thao__guide-item.page-the-thao__light-bg .page-the-thao__step-text {
  color: #333333;
}

.page-the-thao__btn-text-link {
  color: #2B73F6;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  display: inline-block;
  align-self: flex-start;
}

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

.page-the-thao__promo-card .page-the-thao__card-image {
  height: 250px;
}

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

.page-the-thao__figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-the-thao__figure-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-height: 200px;
}

.page-the-thao__figcaption {
  font-size: 0.9em;
  color: #AFC4E8;
  margin-top: 15px;
}

.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F3F8FF;
}

.page-the-thao__faq-item.page-the-thao__card {
  text-align: left;
  padding: 0;
  box-shadow: none;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: #113B7A; /* Primary color */
  color: #F3F8FF; /* Text Main */
  border-bottom: 1px solid #1B3357; /* Divider */
  list-style: none;
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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: 20px 25px;
  background-color: #10233F; /* Card BG */
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.7;
  font-size: 0.95em;
}

.page-the-thao__faq-answer p {
  margin-bottom: 0;
  color: inherit;
}

.page-the-thao__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #113B7A 0%, #1D5FD1 100%);
}

.page-the-thao__cta-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-content .page-the-thao__section-title {
  margin-bottom: 25px;
}

.page-the-thao__cta-content .page-the-thao__paragraph {
  margin-bottom: 40px;
}

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

/* General image rules for content area */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  min-height: 200px; /* Enforce minimum size for all images */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 2.8em;
  }

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

  .page-the-thao__hero-content {
    margin-top: 20px;
  }

  .page-the-thao__hero-section {
    padding-bottom: 40px;
  }

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

  .page-the-thao__card-image {
    height: 180px;
  }

  .page-the-thao__promo-card .page-the-thao__card-image {
    height: 200px;
  }
}

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

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

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

  .page-the-thao__hero-cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 2. Single column long text containers */
  .page-the-thao__article-wrap {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  /* 3. Generic images and figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

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

  .page-the-thao__card-image {
    height: 160px;
    min-height: 160px !important;
  }

  .page-the-thao__promo-card .page-the-thao__card-image {
    height: 180px;
    min-height: 180px !important;
  }

  /* 4. Buttons and button containers */
  .page-the-thao__btn,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="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;
  }

  .page-the-thao__hero-cta-group,
  .page-the-thao__cta-group,
  .page-the-thao__cta-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for CTA groups */
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-the-thao__guide-steps,
  .page-the-thao__feature-grid,
  .page-the-thao__sport-categories,
  .page-the-thao__promo-grid,
  .page-the-thao__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-the-thao__card,
  .page-the-thao__guide-item,
  .page-the-thao__faq-item {
    padding: 20px;
  }

  .page-the-thao__card-title, .page-the-thao__step-title {
    font-size: 1.3em;
  }

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

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

  .page-the-thao__cta-bottom-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .page-the-thao__main-title {
    font-size: 1.8em;
  }

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

  .page-the-thao__btn {
    font-size: 0.9em;
    padding: 12px 20px;
  }
}