.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Body background from shared.css */
}

.page-the-thao__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #F5F7FA; /* Match body background */
}

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333; /* Dark text on light background */
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 with clamp for responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935; /* Brand color for main title */
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333333;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-the-thao__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-the-thao__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1rem;
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Intro Section (Module 1 - circular images) */
.page-the-thao__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #ffffff; /* Card BG */
}

.page-the-thao__features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-the-thao__feature-item {
  flex: 1 1 calc(33% - 30px);
  min-width: 280px;
  text-align: center;
  padding: 25px;
  background-color: #F5F7FA;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 240px; /* Fixed width for circular image */
  height: 240px; /* Fixed height for circular image */
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF5A4F;
  box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.2);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the circular area */
  border-radius: 50%;
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__feature-text {
  font-size: 1rem;
  color: #333333;
}

/* Sports Betting Section */
.page-the-thao__sports-betting-section,
.page-the-thao__cockfighting-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #F5F7FA;
}

.page-the-thao__image-content-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-the-thao__image-content-block--reversed {
  flex-direction: row-reverse;
}

.page-the-thao__image-wrapper {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-the-thao__text-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333;
}

.page-the-thao__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #E53935;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-the-thao__text-content p {
  margin-bottom: 15px;
  font-size: 1rem;
}

/* Why Choose Us Section */
.page-the-thao__why-choose-us-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #ffffff;
}

.page-the-thao__benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-the-thao__benefit-card {
  flex: 1 1 calc(25% - 30px);
  min-width: 220px;
  background-color: #F5F7FA;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-the-thao__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-the-thao__benefit-text {
  font-size: 0.95rem;
  color: #333333;
}

.page-the-thao__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #F5F7FA;
}

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

.page-the-thao__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  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;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  background-color: #FF5A4F; /* Highlight when open */
  color: #ffffff;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  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); /* Rotate plus to become cross */
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #333333;
  line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__hero-content {
    order: 2; /* Content below image */
  }

  .page-the-thao__hero-image {
    order: 1; /* Image above content */
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-the-thao__cta-buttons {
    justify-content: center;
  }

  .page-the-thao__feature-item {
    flex: 1 1 calc(50% - 20px);
  }

  .page-the-thao__image-content-block {
    flex-direction: column;
  }

  .page-the-thao__image-content-block--reversed {
    flex-direction: column; /* Still column, reverse order not as impactful here */
  }

  .page-the-thao__image-wrapper,
  .page-the-thao__text-content {
    min-width: unset;
    width: 100%;
  }

  .page-the-thao__benefits-grid {
    flex-direction: column;
    align-items: center;
  }

  .page-the-thao__benefit-card {
    flex: 1 1 90%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 双栏 */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, no var(--header-offset) */
    padding-bottom: 40px;
  }
  .page-the-thao__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    text-align: center;
    color: #E53935 !important; /* Ensure brand color */
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px; /* Add padding to container */
    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-image {
    width: 100%;
  }
  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 2. 模块1 三栏正圆图 */
  .page-the-thao__intro-section {
    padding: 40px 15px;
  }
  .page-the-thao__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .page-the-thao__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-the-thao__features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__feature-item {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 380px; /* Constrain single column width */
    margin: 0 auto;
    padding: 20px;
  }
  .page-the-thao__icon-box-media {
    width: 200px !important; /* Maintain square aspect ratio */
    height: 200px !important; /* Maintain square aspect ratio */
    margin-bottom: 20px;
    border: 3px solid #FF5A4F;
    box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.2);
  }
  .page-the-thao__icon-box-media img {
    max-width: 100% !important; /* Ensure image fits */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }
  .page-the-thao__feature-text {
    font-size: 0.9rem;
  }

  /* 3. 七 Tab 游戏区 - N/A for this page, as it's not a homepage with game tabs. */

  /* 4. 教程长文 / 促销 / 信任 / FAQ / blog / intro 排版 */
  .page-the-thao__container {
    padding: 20px 15px;
  }
  .page-the-thao__sports-betting-section,
  .page-the-thao__cockfighting-section,
  .page-the-thao__why-choose-us-section,
  .page-the-thao__faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-the-thao__image-content-block {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .page-the-thao__image-content-block--reversed {
    flex-direction: column; /* On mobile, always column */
  }
  .page-the-thao__image-wrapper,
  .page-the-thao__text-content {
    width: 100%;
  }
  .page-the-thao__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__sub-title {
    font-size: 1.5rem;
    margin-top: 20px;
  }
  .page-the-thao__text-content p {
    font-size: 0.95rem;
  }
  .page-the-thao__benefits-grid {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__benefit-card {
    flex: 1 1 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 20px;
  }
  .page-the-thao__benefit-title {
    font-size: 1.2rem;
  }
  .page-the-thao__faq-list {
    margin-top: 30px;
  }
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-the-thao__faq-toggle {
    font-size: 1.5rem;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* 5. 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__features-grid,
  .page-the-thao__benefits-grid,
  .page-the-thao__image-content-block,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* 6. 按钮与按钮容器 */
  .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;
    justify-content: center; /* Center buttons if wrapped */
  }
  .page-the-thao__cta-buttons--center {
    flex-direction: column; /* Force column for single centered button group */
  }
}