.page-the-thao {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --page-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  position: relative;
  color: var(--text-main);
  text-align: center;
  padding-bottom: 60px;
}

.page-the-thao__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-the-thao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-the-thao__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--card-bg);
}

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

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-the-thao__section-description {
  font-size: 1.05em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.page-the-thao__advantages-grid,
.page-the-thao__betting-types-grid,
.page-the-thao__guide-steps,
.page-the-thao__sports-grid,
.page-the-thao__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-the-thao__advantage-icon,
.page-the-thao__type-image,
.page-the-thao__step-image,
.page-the-thao__sport-image,
.page-the-thao__promotion-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-the-thao__advantage-title,
.page-the-thao__type-title,
.page-the-thao__step-title,
.page-the-thao__sport-title,
.page-the-thao__promotion-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-the-thao__advantage-text,
.page-the-thao__type-text,
.page-the-thao__step-text,
.page-the-thao__sport-text,
.page-the-thao__promotion-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main);
}

.page-the-thao__step-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.page-the-thao__step-text a:hover {
  text-decoration: underline;
}

.page-the-thao__dark-section {
  background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
}

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

.page-the-thao__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__faq-item {
  text-align: left;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-the-thao__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.page-the-thao__faq-item summary:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-the-thao__faq-item summary::-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;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--card-bg);
  border-top: none;
}

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

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

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    padding: 15px;
  }

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

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 80%;
    margin: 0 auto;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6em, 3.8vw, 2.5em);
  }

  .page-the-thao__advantages-grid,
  .page-the-thao__betting-types-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__sports-grid,
  .page-the-thao__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-the-thao__advantage-title,
  .page-the-thao__type-title,
  .page-the-thao__step-title,
  .page-the-thao__sport-title,
  .page-the-thao__promotion-title {
    font-size: 1.25em;
  }

  .page-the-thao__faq-item summary {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-the-thao__faq-answer {
    padding: 18px 20px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-the-thao__hero-image-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed */
  }

  .page-the-thao__hero-content {
    width: 95%;
    padding: 15px;
    top: 55%; /* Adjust position to prevent text overlap on image */
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-the-thao__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__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;
    padding-right: 15px;
  }

  /* General Section */
  .page-the-thao__section {
    padding: 40px 10px;
  }

  .page-the-thao__container {
    padding: 0 10px;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 15px;
  }

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

  /* Grids (Advantages, Betting Types, Guide Steps, Sports, Promotions) */
  .page-the-thao__advantages-grid,
  .page-the-thao__betting-types-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__sports-grid,
  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__card {
    padding: 20px;
  }

  .page-the-thao__advantage-title,
  .page-the-thao__type-title,
  .page-the-thao__step-title,
  .page-the-thao__sport-title,
  .page-the-thao__promotion-title {
    font-size: 1.15em;
  }

  .page-the-thao__advantage-text,
  .page-the-thao__type-text,
  .page-the-thao__step-text,
  .page-the-thao__sport-text,
  .page-the-thao__promotion-text {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-the-thao__faq-list {
    gap: 15px;
  }

  .page-the-thao__faq-item summary {
    font-size: 1em;
    padding: 15px 18px;
  }

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

  /* Universal Image Adaption */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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;
  }

  /* Buttons and button containers (re-iterate for clarity) */
  .page-the-thao__cta-button,
  .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__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    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;
  }
}