/* style/sports.css */

/* Base styles */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css body background */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-sports__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-sports__list li {
  margin-bottom: 10px;
}

.page-sports__list li strong {
  color: #26A9E0;
}

.page-sports a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Color contrast classes */
.page-sports__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-sports__btn-primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Default padding, will be overridden by shared.css body padding-top or adjusted */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
  text-align: center;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 3.8em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-sports__hero-description {
  font-size: 1.5em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-sports__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Overview Section */
.page-sports__overview-section {
  padding: 80px 0;
}

.page-sports__overview-section .page-sports__text-block {
  color: #333333;
}

/* Game Types Section */
.page-sports__game-types-section {
  padding: 80px 0;
}

.page-sports__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-sports__game-card {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-sports__game-card:hover {
  transform: translateY(-10px);
}

.page-sports__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-sports__game-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
  color: #26A9E0;
}

.page-sports__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-sports__game-title a:hover {
  text-decoration: underline;
}

.page-sports__game-description {
  font-size: 1em;
  color: #333333;
  padding: 0 20px 20px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
}

.page-sports__live-betting-section .page-sports__text-block {
  color: #333333;
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-sports__image-centered {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
}

.page-sports__guide-section .page-sports__text-block {
  color: #333333;
}

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

.page-sports__step-card {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__step-icon {
  font-size: 3em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-sports__step-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Security Section */
.page-sports__security-section {
  padding: 80px 0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-section .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  color: #333333;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.page-sports__faq-question:hover {
  background-color: #f0f0f0;
}

.page-sports__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #333333;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #ffffff;
  color: #555555;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-sports__faq-answer p {
  margin: 0 0 10px 0;
  color: #555555;
}

.page-sports__faq-answer a {
  color: #26A9E0;
}

/* Download App Section */
.page-sports__download-app-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__app-download-buttons {
  margin-top: 30px;
}

/* --- Tablet Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }

  .page-sports__hero-description {
    font-size: 1.3em;
  }

  .page-sports__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-sports__steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

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

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-sports__hero-section {
    padding-top: 0; /* shared.css handles body padding-top, so this page's hero doesn't add more */
    min-height: 450px;
    padding-bottom: 40px;
  }

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

  .page-sports__hero-description {
    font-size: 1.1em;
  }

  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* 按钮与按钮容器 */
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports 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-sports__hero-cta-buttons,
  .page-sports__cta-buttons,
  .page-sports__app-download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px;
  }

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-sports__subtitle {
    font-size: 1.4em;
  }

  /* 产品展示图区域 */
  .page-sports__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 通用图片与容器 */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__overview-section,
  .page-sports__game-types-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-cta-section,
  .page-sports__guide-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__download-app-section {
    padding: 40px 0;
  }

  .page-sports__game-image {
    height: 200px;
  }

  .page-sports__image-full-width,
  .page-sports__image-centered {
    margin: 20px 0 !important;
  }

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

  .page-sports__step-card {
    padding: 20px;
  }

  /* FAQ 区域 */
  .page-sports__faq-item {
    margin-bottom: 10px;
  }

  .page-sports__faq-question {
    padding: 15px;
  }

  .page-sports__faq-title {
    font-size: 1em;
  }

  .page-sports__faq-answer {
    padding: 0 15px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
}