/* style/the-thao.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --background-dark: #0D0E12;
  --card-background: #17191F;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-dark);
  overflow-x: hidden;
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-the-thao__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-the-thao a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: var(--text-main);
  border: none;
}

.page-the-thao__btn-primary:hover {
  box-shadow: 0 0 15px var(--glow-color);
  transform: translateY(-2px);
}

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

.page-the-thao__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-dark);
  box-shadow: 0 0 10px var(--secondary-color);
  transform: translateY(-2px);
}

.page-the-thao__read-more-btn {
  display: inline-block;
  margin-top: 15px;
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-the-thao__read-more-btn:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
}

.page-the-thao__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
}

.page-the-thao__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.page-the-thao__hero-slide.is-active {
  opacity: 1;
}

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

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

.page-the-thao__main-title {
  font-size: 3.2em;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-the-thao__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.4;
}

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

.page-the-thao__hero-slider-prev,
.page-the-thao__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 11;
  border-radius: 5px;
}

.page-the-thao__hero-slider-prev {
  left: 20px;
}

.page-the-thao__hero-slider-next {
  right: 20px;
}

.page-the-thao__hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 11;
}

.page-the-thao__hero-slider-dots span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.page-the-thao__hero-slider-dots span.is-active {
  background: var(--secondary-color);
}

/* General Section Styles */
.page-the-thao__dark-section {
  background-color: var(--background-dark);
  padding: 60px 0;
}

.page-the-thao__card {
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* Features Section (Guide Grid) */
.page-the-thao__features-section {
  padding: 80px 0;
}

.page-the-thao__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.page-the-thao__guide-card {
  flex: 0 0 18%; /* Adjust to fit 5 cards */
  max-width: 18%;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
}

.page-the-thao__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-the-thao__guide-card img {
  width: 100%;
  height: 350px; /* Fixed height for vertical cards */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-the-thao__guide-card--pos-1,
.page-the-thao__guide-card--pos-5 {
  padding-top: 50px;
}

.page-the-thao__guide-card--pos-2,
.page-the-thao__guide-card--pos-4 {
  padding-top: 25px;
}

/* Popular Sports Section */
.page-the-thao__popular-sports-section {
  padding: 60px 0;
}

.page-the-thao__sports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__sport-card .page-the-thao__card-link {
  display: block;
  text-decoration: none;
  color: var(--text-main);
}

.page-the-thao__sport-card .page-the-thao__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__sport-card .page-the-thao__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-the-thao__sport-card .page-the-thao__card-description {
  font-size: 1em;
  line-height: 1.5;
}

/* Guide Betting Section & Strategy Section */
.page-the-thao__guide-betting-section,
.page-the-thao__strategy-section {
  padding: 60px 0;
}

.page-the-thao__step-list,
.page-the-thao__strategy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__step-item,
.page-the-thao__strategy-item {
  padding: 30px;
}

.page-the-thao__step-title,
.page-the-thao__strategy-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__step-description,
.page-the-thao__strategy-description {
  font-size: 1.05em;
  line-height: 1.6;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
}

.page-the-thao__promo-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
  color: var(--text-main);
  font-size: 1.05em;
}

.page-the-thao__promo-list li {
  margin-bottom: 10px;
}

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

/* News Section */
.page-the-thao__news-section {
  padding: 60px 0;
}

.page-the-thao__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.page-the-thao__blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-the-thao__blog-card .page-the-thao__card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-main);
  height: 100%;
}

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

.page-the-thao__blog-card .page-the-thao__card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-card .page-the-thao__card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-the-thao__blog-card .page-the-thao__card-date {
  font-size: 0.9em;
  color: rgba(255, 243, 230, 0.7);
  margin-bottom: 10px;
}

.page-the-thao__blog-card .page-the-thao__card-description {
  font-size: 0.95em;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 15px;
}

/* Final CTA Section */
.page-the-thao__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-the-thao__final-cta-section .page-the-thao__section-title {
  font-size: 2.8em;
}

.page-the-thao__final-cta-section .page-the-thao__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.2em;
}

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

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 15px;
  }

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

  .page-the-thao__main-title {
    font-size: 2.5em;
  }

  .page-the-thao__description {
    font-size: 1.1em;
  }

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

  .page-the-thao__guide-grid {
    gap: 15px;
  }

  .page-the-thao__guide-card {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-5 {
    padding-top: 30px;
  }

  .page-the-thao__guide-card--pos-2,
  .page-the-thao__guide-card--pos-4 {
    padding-top: 15px;
  }

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

  .page-the-thao__step-list,
  .page-the-thao__strategy-list {
    grid-template-columns: 1fr;
  }

  .page-the-thao__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-the-thao__final-cta-section .page-the-thao__section-title {
    font-size: 2.2em;
  }
}

/* Mobile (max-width: 768px) - 必写清单 */
@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-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

  /* 1. 顶区轮播 */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
  }

  .page-the-thao__hero-slider {
    height: 350px;
  }

  .page-the-thao__hero-content {
    padding: 15px;
    max-width: 90%;
  }

  .page-the-thao__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-the-thao__description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-the-thao__hero-slider-prev,
  .page-the-thao__hero-slider-next {
    padding: 10px 8px;
    font-size: 1.2em;
  }

  .page-the-thao__hero-slider-prev {
    left: 10px;
  }

  .page-the-thao__hero-slider-next {
    right: 10px;
  }

  .page-the-thao__hero-slider-dots {
    bottom: 10px;
    gap: 8px;
  }

  .page-the-thao__hero-slider-dots span {
    width: 10px;
    height: 10px;
  }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 */
  .page-the-thao__features-section {
    padding: 40px 0;
  }

  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important;
    flex: auto;
    max-width: none;
  }

  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-the-thao__guide-card--pos-3,
  .page-the-thao__guide-card--pos-4,
  .page-the-thao__guide-card--pos-5 {
    grid-column: span 2;
  }

  .page-the-thao__guide-card img {
     /* Adjust height for mobile */
  }

  /* 3. `home_content` 外框 - Not used on this page, but providing a placeholder if it were */
  /* .page-the-thao__home-content-box { max-width: 100%; height: auto; } */
  /* .page-the-thao__home-content-inner { height: auto; overflow: visible; } */

  /* 4. Blog Card Section */
  .page-the-thao__news-section {
    padding: 40px 0;
  }

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

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

  .page-the-thao__blog-card .page-the-thao__card-title {
    font-size: 1.1em;
  }

  .page-the-thao__blog-card .page-the-thao__card-description {
    font-size: 0.9em;
  }

  /* 5. 通用图片与按钮 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__card,
  .page-the-thao__section,
  .page-the-thao__container,
  .page-the-thao__cta-buttons,
  .page-the-thao__hero-actions {
    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,
  .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 {
    flex-direction: column;
    gap: 10px;
  }

  .page-the-thao__popular-sports-section .page-the-thao__sports-grid,
  .page-the-thao__guide-betting-section .page-the-thao__step-list,
  .page-the-thao__strategy-section .page-the-thao__strategy-list {
    grid-template-columns: 1fr;
  }

  .page-the-thao__final-cta-section .page-the-thao__section-title {
    font-size: 1.8em;
  }
}

/* Ensure contrast for specific elements */
.page-the-thao__intro-section p,
.page-the-thao__popular-sports-section p,
.page-the-thao__guide-betting-section p,
.page-the-thao__strategy-section p,
.page-the-thao__promo-section p,
.page-the-thao__news-section p,
.page-the-thao__final-cta-section p,
.page-the-thao__promo-list li {
  color: var(--text-main);
}

.page-the-thao__card {
  background: var(--card-background);
  color: var(--text-main);
}

.page-the-thao__card-title {
  color: var(--secondary-color);
}

.page-the-thao__card-date {
  color: rgba(255, 243, 230, 0.7);
}

.page-the-thao__promo-list strong {
  color: var(--secondary-color);
}