/* Base styles for the page-the-thao */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
}

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #113B7A;
  margin-bottom: 20px;
}

.page-the-thao__section-description {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-the-thao__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
}

.page-the-thao__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-the-thao__hero-content {
  padding: 40px 20px;
  text-align: center;
  background: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  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;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: #F3F8FF; /* Text Main */
  border: 2px solid #2B73F6;
}

.page-the-thao__btn-secondary:hover {
  background: #2B73F6;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-text {
  background: none;
  border: none;
  color: #1D5FD1;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
}

.page-the-thao__btn-text:hover {
  color: #113B7A;
}

.page-the-thao__why-choose .page-the-thao__section-title {
  color: #113B7A;
}

.page-the-thao__why-choose .page-the-thao__section-description {
  color: #555;
}

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

.page-the-thao__feature-card {
  background: #ffffff; /* Default light background */
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao__feature-card .page-the-thao__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #113B7A;
  margin-bottom: 15px;
}

.page-the-thao__feature-card .page-the-thao__card-text {
  font-size: 16px;
  color: #555;
}

.page-the-thao__betting-types {
  background: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__betting-types .page-the-thao__section-title {
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__betting-types .page-the-thao__section-description {
  color: #AFC4E8; /* Text Secondary */
}

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

.page-the-thao__betting-card {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__betting-card .page-the-thao__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
}

.page-the-thao__betting-card .page-the-thao__card-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-the-thao__step-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px;
}

.page-the-thao__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: #1D5FD1;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.page-the-thao__step-card .page-the-thao__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #113B7A;
  margin-bottom: 10px;
}

.page-the-thao__step-card .page-the-thao__card-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.page-the-thao__promotions {
  background: #f8f8f8;
}

.page-the-thao__promotion-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__promotion-card {
  background: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-the-thao__promotion-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__promotion-content {
  padding: 25px;
}

.page-the-thao__promotion-content .page-the-thao__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
}

.page-the-thao__promotion-content .page-the-thao__card-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
}

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

.page-the-thao__tips-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-the-thao__tips-item strong {
  color: #113B7A;
}

/* FAQ Section */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #f5f5f5;
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #113B7A;
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
  font-size: 16px;
}

.page-the-thao__cta-bottom {
  background: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__cta-bottom .page-the-thao__section-title {
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__cta-bottom .page-the-thao__section-description {
  color: #AFC4E8; /* Text Secondary */
}

.page-the-thao__cta-bottom .page-the-thao__cta-buttons {
  margin-top: 40px;
}

.page-the-thao__figure {
  margin: 40px auto;
  max-width: 1000px;
}

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

.page-the-thao__figcaption {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
  text-align: center;
}

/* Responsive styles */

/* Mobile-first approach for general elements */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-the-thao__hero-image {
    height: 300px;
  }

  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__hero-content {
    padding: 30px 15px;
  }

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

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

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

  /* 按钮与按钮容器 */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-text,
  .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: 12px 15px;
    font-size: 16px;
  }

  /* 通用图片与容器 */
  .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,
  .page-the-thao__figure {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__betting-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__betting-card,
  .page-the-thao__step-card {
    padding: 25px;
  }

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

  .page-the-thao__step-number {
    width: 35px;
    height: 35px;
    font-size: 18px;
    top: 15px;
    left: 15px;
  }

  .page-the-thao__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__promotion-card img {
    height: 200px;
  }

  .page-the-thao__promotion-content {
    padding: 20px;
  }

  .page-the-thao__promotion-content .page-the-thao__card-title {
    font-size: 20px;
  }

  .page-the-thao__promotion-content .page-the-thao__card-text {
    font-size: 15px;
  }

  .page-the-thao__tips-item {
    font-size: 16px;
    padding: 15px;
  }

  /* FAQ */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-qtext { font-size: 16px; }
  .page-the-thao__faq-toggle { font-size: 20px; width: 24px; margin-left: 10px; }
  details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }

  /* 长文 SEO 区 */
  .page-the-thao__article-body {
    padding: 0 15px !important;
    text-align: left;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-the-thao__container {
    padding: 0 30px;
  }

  .page-the-thao__section-title {
    font-size: 32px;
  }

  .page-the-thao__hero-image {
    height: 500px;
  }

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

  .page-the-thao__features-grid,
  .page-the-thao__betting-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-the-thao__steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-the-thao__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-the-thao__promotion-card img {
    height: 220px;
  }

  /* HERO 主图区域 - Tablet */
  .page-the-thao__hero-image img {
    object-fit: cover; /* Default cover behavior for larger screens */
    aspect-ratio: auto;
  }

  /* 长文 SEO 区 - Tablet */
  .page-the-thao__article-body {
    padding: 0 30px;
  }
}

/* Desktop styles for specific elements that need more space */
@media (min-width: 1025px) {
  .page-the-thao__hero-image {
    height: 600px;
  }

  .page-the-thao__hero-title {
    font-size: 56px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__betting-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-the-thao__steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-the-thao__promotion-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 长文 SEO 区 - Desktop */
  .page-the-thao__article-body {
    padding: 0;
  }
}

/* Global image settings for content area */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content area images are not smaller than 200px */
.page-the-thao__why-choose .page-the-thao__figure img,
.page-the-thao__betting-types .page-the-thao__figure img {
  min-width: 200px;
  min-height: 200px;
}

/* Fixed for text colors based on body background (default white) */
.page-the-thao p,
.page-the-thao li {
  color: #333333;
}

.page-the-thao__light-bg {
  background: #ffffff;
  color: #333333;
}

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

.page-the-thao__text-main {
  color: #F3F8FF;
}

.page-the-thao__text-secondary {
  color: #AFC4E8;
}

/* Ensure links within text are visible */
.page-the-thao a {
  color: #1D5FD1;
  text-decoration: underline;
}

.page-the-thao a:hover {
  color: #2B73F6;
}

.page-the-thao__article-body {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
}

.page-the-thao__article-body h2,
.page-the-thao__article-body h3,
.page-the-thao__article-body h4 {
  color: #113B7A;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-the-thao__article-body h2 {
  font-size: 32px;
}

.page-the-thao__article-body h3 {
  font-size: 26px;
}

.page-the-thao__article-body h4 {
  font-size: 22px;
}

.page-the-thao__article-body p {
  margin-bottom: 15px;
}

.page-the-thao__article-body ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-the-thao__article-body ol {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-the-thao__article-body li {
  margin-bottom: 8px;
}

.page-the-thao__article-figure {
  margin: 30px auto;
  max-width: 800px;
}

.page-the-thao__article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-the-thao__article-figure figcaption {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
  text-align: center;
}

/* Mobile-specific adjustments for article body */
@media (max-width: 768px) {
  .page-the-thao__article-body {
    font-size: 16px;
    padding: 0 15px !important;
  }

  .page-the-thao__article-body h2 {
    font-size: 28px;
  }

  .page-the-thao__article-body h3 {
    font-size: 22px;
  }

  .page-the-thao__article-body h4 {
    font-size: 18px;
  }

  .page-the-thao__article-body ul,
  .page-the-thao__article-body ol {
    margin-left: 20px;
  }

  .page-the-thao__article-figure {
    padding: 0 15px !important; /* Ensure figure does not overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}