.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--Text-Main); /* Default text color for the page */
  background-color: var(--Deep-Navy); /* Ensure content has proper background */
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--Primary-Color) 0%, var(--Deep-Navy) 100%);
  color: var(--Text-Main);
}

.page-the-thao__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  gap: 30px;
}

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

.page-the-thao__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--Gold);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--Text-Secondary);
}

.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

.page-the-thao__hero-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--Gold);
  line-height: 1.3;
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--Text-Secondary);
}

.page-the-thao__light-bg {
  background-color: var(--Card-B-G); /* Darker background for contrast */
  color: var(--Text-Main);
  padding: 60px 0;
}

.page-the-thao__dark-section {
  background-color: var(--Deep-Navy);
  color: var(--Text-Main);
  padding: 60px 0;
}

.page-the-thao__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-the-thao__feature-item {
  text-align: center;
  padding: 25px;
  background-color: var(--Primary-Color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
  transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--Gold);
  box-shadow: 0 0 15px var(--Glow);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--Gold);
}

.page-the-thao__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--Text-Secondary);
}

.page-the-thao__bet-types-grid,
.page-the-thao__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-the-thao__bet-type-card,
.page-the-thao__sport-card {
  background-color: var(--Card-B-G);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--Border-Color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__bet-type-card:hover,
.page-the-thao__sport-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--Gold);
}

.page-the-thao__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--Text-Secondary);
}

.page-the-thao__sport-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__centered-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-the-thao__guide-step {
  background-color: var(--Card-B-G);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--Border-Color);
}

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

.page-the-thao__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--Gold);
}

.page-the-thao__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--Text-Secondary);
}

.page-the-thao__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-the-thao__promo-card {
  background-color: var(--Card-B-G);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--Border-Color);
}

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

.page-the-thao__why-choose-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__why-choose-list li {
  background-color: var(--Card-B-G);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--Border-Color);
  color: var(--Text-Secondary);
}

.page-the-thao__list-icon {
  font-size: 1.5rem;
  color: var(--Gold);
  flex-shrink: 0;
}

.page-the-thao__tips-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--Text-Secondary);
}

.page-the-thao__tips-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.page-the-thao__faq-item {
  background-color: var(--Card-B-G);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--Border-Color);
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--Text-Main);
  cursor: pointer;
  background-color: var(--Primary-Color);
  border-bottom: 1px solid var(--Divider);
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--Gold);
  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: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--Text-Secondary);
}

.page-the-thao__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

.page-the-thao__faq-answer p:last-child {
  margin-bottom: 0;
}

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

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

.page-the-thao__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--Primary-Color);
}

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

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

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

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

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--Gold);
  border: 2px solid var(--Gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--Gold);
  color: var(--Primary-Color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-large {
  padding: 18px 40px;
  font-size: 1.25rem;
}

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

@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    padding: 30px 15px;
    gap: 25px;
  }

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

  .page-the-thao__hero-description {
    font-size: 1rem;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .page-the-thao__text-block {
    font-size: 1rem;
  }

  .page-the-thao__feature-item,
  .page-the-thao__bet-type-card,
  .page-the-thao__sport-card,
  .page-the-thao__guide-step,
  .page-the-thao__promo-card {
    padding: 20px;
  }

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

  .page-the-thao__card-description,
  .page-the-thao__feature-description,
  .page-the-thao__step-description,
  .page-the-thao__why-choose-list li,
  .page-the-thao__tips-list li,
  .page-the-thao__faq-question,
  .page-the-thao__faq-answer {
    font-size: 0.9rem;
  }

  .page-the-thao__icon-box-media {
    width: 140px;
    height: 140px;
    margin-bottom: 15px;
  }

  .page-the-thao__sport-image,
  .page-the-thao__promo-image {
    height: 180px;
  }

  .page-the-thao__guide-image {
    height: 160px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-the-thao__btn-large {
    padding: 15px 35px;
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__hero-title {
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-the-thao__hero-description {
    text-align: center;
    font-size: 0.95rem;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .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-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-the-thao__text-block {
    font-size: 0.9rem;
  }

  .page-the-thao__light-bg, .page-the-thao__dark-section {
    padding: 40px 0;
  }

  .page-the-thao__content-area {
    padding: 0 15px;
  }

  .page-the-thao__feature-grid,
  .page-the-thao__bet-types-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__guide-steps-grid,
  .page-the-thao__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-the-thao__icon-box-media {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-width: 3px;
  }

  .page-the-thao__sport-image,
  .page-the-thao__promo-image,
  .page-the-thao__guide-image {
    height: 160px;
  }

  .page-the-thao__card-title,
  .page-the-thao__feature-title,
  .page-the-thao__step-title {
    font-size: 1.2rem;
  }

  .page-the-thao__card-description,
  .page-the-thao__feature-description,
  .page-the-thao__step-description,
  .page-the-thao__tips-list li,
  .page-the-thao__faq-answer {
    font-size: 0.85rem;
  }

  .page-the-thao__why-choose-list li {
    font-size: 0.9rem;
    padding: 15px;
    gap: 10px;
  }

  .page-the-thao__list-icon {
    font-size: 1.3rem;
  }

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

  .page-the-thao__faq-toggle {
    font-size: 1.5rem;
  }

  .page-the-thao__final-cta-section {
    padding: 60px 0;
  }

  .page-the-thao__btn-large {
    font-size: 1.1rem;
    padding: 14px 30px;
  }

  /* Universal image responsive styles */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Ensure all containers containing images are responsive */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-item,
  .page-the-thao__bet-type-card,
  .page-the-thao__sport-card,
  .page-the-thao__guide-step,
  .page-the-thao__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__icon-box-media {
    width: 160px !important; /* maintain square shape */
    height: 160px !important;
    margin: 0 auto 15px;
  }
  .page-the-thao__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
  }
}