.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__text-link {
  color: #F3C54D; /* Gold */
  text-decoration: none;
  font-weight: bold;
}

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

/* Buttons */
.page-the-thao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C; /* Dark text for bright button */
}

.page-the-thao__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-the-thao__btn--secondary {
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  border: 2px solid #6A1E1E; /* Border */
}

.page-the-thao__btn--secondary:hover {
  background: #6A1E1E; /* Border */
  color: #FFF1E8;
  transform: translateY(-2px);
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding to avoid double spacing with shared header */
  padding-bottom: 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 100%;
}

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

/* General Images */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sports Overview Grid */
.page-the-thao__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__sport-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #6A1E1E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-the-thao__card-title {
  font-size: 24px;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-the-thao__step-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #6A1E1E; /* Border */
  position: relative;
  padding-top: 60px;
}

.page-the-thao__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border: 3px solid #6A1E1E;
}

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

/* Bet Types List */
.page-the-thao__bet-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__bet-list li {
  background-color: #2A1212; /* Card BG */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #E53030; /* Deep Red accent */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__bet-list li strong {
  color: #F3C54D; /* Gold */
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

/* Strategies Cards */
.page-the-thao__strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__strategy-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid #6A1E1E; /* Border */
}

/* Benefits List */
.page-the-thao__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-the-thao__benefit-list li {
  background-color: #2A1212; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #F3C54D; /* Gold accent */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-the-thao__benefit-list li::before {
  content: '✔';
  color: #F3C54D; /* Gold */
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

/* FAQ Section */
.page-the-thao__faq-items {
  margin-top: 30px;
}

.page-the-thao__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #FFF1E8; /* Text Main */
  background-color: #7E0D0D; /* Deep Red */
  border-bottom: 1px solid #6A1E1E;
  list-style: none; /* Hide default marker for details summary */
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid #6A1E1E;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '-';
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  color: #FFF1E8; /* Text Main */
  font-size: 16px;
}

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

/* CTA Section */
.page-the-thao__cta-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__article-wrap {
    padding: 0 15px;
  }

  .page-the-thao__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
  }

  .page-the-thao__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

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

  .page-the-thao__sports-grid, 
  .page-the-thao__guide-steps, 
  .page-the-thao__strategy-cards, 
  .page-the-thao__benefit-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

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

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

  /* 1. Top Section (Hero) */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: 28px !important;
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 15px !important;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-cta {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 2. Single Column Long Text Container */
  .page-the-thao__article-wrap,
  .page-the-thao__section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 24px !important;
    margin-bottom: 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__card-image {
    height: auto !important; /* Allow height to adjust */
    min-height: 200px; /* Ensure minimum size */
  }

  /* 4. Buttons and Button Containers */
  .page-the-thao__btn,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-the-thao__hero-cta,
  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 5. Registration Tutorial and FAQ Blocks (Guide Steps and FAQ) */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .page-the-thao__step-card {
    padding-top: 50px;
  }

  .page-the-thao__step-number {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }

  .page-the-thao__faq-question {
    font-size: 16px !important;
    padding: 15px 20px;
  }

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

  .page-the-thao__sports-grid, 
  .page-the-thao__strategy-cards, 
  .page-the-thao__benefit-list {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .page-the-thao__benefit-list li {
    font-size: 15px;
  }
}