/* 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__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-the-thao__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-the-thao__section-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-the-thao__section-title--white {
  color: #ffffff;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__section-description--white {
  color: #f0f0f0;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-color: #FFFFFF;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 20px auto 0 auto;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-the-thao__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

/* CTA Buttons */
.page-the-thao__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.page-the-thao__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary,
.page-the-thao__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-primary:hover {
  background-color: #1a7fb3;
  border-color: #1a7fb3;
}

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

.page-the-thao__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb3;
}

.page-the-thao__btn-tertiary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-the-thao__btn-tertiary:hover {
  background-color: #c76706;
  border-color: #c76706;
}

.page-the-thao__btn-outline {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-outline:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-the-thao__text-link--white {
  color: #ffffff;
  text-decoration: underline;
}

.page-the-thao__text-link--white:hover {
  color: #e0f2f7;
}

/* Why Choose Section */
.page-the-thao__why-choose .page-the-thao__section-title {
  color: #26A9E0;
}

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

.page-the-thao__feature-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-the-thao__feature-heading {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-the-thao__feature-text {
  font-size: 1em;
  color: #555555;
  text-align: left;
  flex-grow: 1;
}

/* Bet Types Section */
.page-the-thao__bet-types {
  padding: 80px 0;
}

.page-the-thao__bet-types .page-the-thao__section-title {
  color: #ffffff;
}

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

.page-the-thao__bet-type-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-the-thao__bet-type-heading {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-the-thao__bet-type-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Bet Section */
.page-the-thao__how-to-bet .page-the-thao__section-title {
  color: #26A9E0;
}

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

.page-the-thao__step-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-the-thao__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #EA7C07; /* Login color for steps */
  margin-bottom: 15px;
}

.page-the-thao__step-heading {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-the-thao__step-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-the-thao__step-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-the-thao__step-text a:hover {
  color: #1a7fb3;
}

/* Promotions Section */
.page-the-thao__promotions {
  padding: 80px 0;
}

.page-the-thao__promotions .page-the-thao__section-title {
  color: #ffffff;
}

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

.page-the-thao__promotion-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promotion-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-the-thao__promotion-heading {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-the-thao__promotion-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-the-thao__faq-section .page-the-thao__section-title {
  color: #26A9E0;
}

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

.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;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  background-color: #e0f2f7;
  color: #26A9E0;
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question .page-the-thao__faq-toggle {
  content: '-';
  transform: rotate(180deg);
}

.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-answer {
  padding: 15px 25px 25px 25px;
  font-size: 0.95em;
  color: #555555;
  border-top: 1px solid #eeeeee;
}

.page-the-thao__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-the-thao__faq-answer a:hover {
  color: #1a7fb3;
}

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

.page-the-thao__cta-content {
  max-width: 900px;
}

.page-the-thao__final-cta .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__final-cta .page-the-thao__section-description {
  color: #f0f0f0;
}

/* Responsive Styles */

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

/* General container responsiveness */
.page-the-thao__section,
.page-the-thao__card,
.page-the-thao__container,
.page-the-thao__hero-content,
.page-the-thao__feature-item,
.page-the-thao__bet-type-card,
.page-the-thao__step-card,
.page-the-thao__promotion-card,
.page-the-thao__faq-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 2.5em;
  }

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

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

  .page-the-thao__feature-heading,
  .page-the-thao__bet-type-heading,
  .page-the-thao__step-heading,
  .page-the-thao__promotion-heading {
    font-size: 1.5em;
  }

  .page-the-thao__grid-2-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .page-the-thao__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px;
  }

  .page-the-thao__hero-content {
    margin-top: 10px;
    padding: 20px 15px;
  }

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

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

  /* 移动端通用 padding for containers */
  .page-the-thao__container {
    padding: 0 15px;
  }

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

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

  /* General containers */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__hero-content,
  .page-the-thao__feature-item,
  .page-the-thao__bet-type-card,
  .page-the-thao__step-card,
  .page-the-thao__promotion-card,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Buttons and button containers */
  .page-the-thao__cta-button,
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .page-the-thao__btn-outline,
  .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;
    flex-direction: column;
    gap: 10px;
  }

  .page-the-thao__section-title {
    font-size: 2em;
  }

  .page-the-thao__feature-grid,
  .page-the-thao__grid-2-columns,
  .page-the-thao__steps-grid,
  .page-the-thao__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__bet-type-card,
  .page-the-thao__step-card,
  .page-the-thao__promotion-card {
    padding: 20px 15px;
  }

  .page-the-thao__feature-heading,
  .page-the-thao__bet-type-heading,
  .page-the-thao__step-heading,
  .page-the-thao__promotion-heading {
    font-size: 1.3em;
  }

  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-the-thao__faq-list {
    margin-top: 20px;
  }

  .page-the-thao__faq-item {
    margin-bottom: 10px;
  }
}