/* Custom properties for colors (if not defined in shared.css) */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
  --primary-color-rgb: 17, 59, 122;
  --deep-navy-rgb: 8, 22, 43;
}

/* Base styles for the sports page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--deep-navy); /* Body background from shared.css */
}

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

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

.page-sports__dark-section {
  background-color: var(--deep-navy);
  color: var(--text-main);
}

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

.page-sports__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-sports__text-block {
  font-size: 17px;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-sports__text-link {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-sports__text-link:hover {
  color: #fff;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(17, 67, 166, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 8px 20px rgba(17, 67, 166, 0.6);
}

.page-sports__btn-secondary {
  background: var(--card-bg);
  color: var(--gold);
  border: 2px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary:hover {
  background: var(--border-color);
  color: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-top: 10px; /* Minimal top padding, rely on body for header offset */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
}

.page-sports__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default cover for desktop */
  display: block;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
  max-width: 900px;
}

.page-sports__main-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold);
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-sports__tagline {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Why Choose Us Section */
.page-sports__why-choose-us .page-sports__text-block {
  color: #444;
}

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

.page-sports__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  border-top: 5px solid var(--primary-color);
}

.page-sports__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-sports__feature-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* Sports Types Section */
.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__sport-card {
  background: var(--card-bg);
  color: var(--text-main);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.page-sports__sport-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-sports__sport-card .page-sports__card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold);
}

.page-sports__sport-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__sport-card .page-sports__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

/* Live Betting Section */
.page-sports__live-betting .page-sports__text-block {
  color: #444;
}

.page-sports__image-wrapper {
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-sports__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Promotions Section */
.page-sports__promos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__promo-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  border-left: 5px solid var(--gold);
}

.page-sports__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold);
}

.page-sports__promo-item p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* How to Start Section */
.page-sports__how-to-start .page-sports__text-block {
  color: #444;
}

.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.page-sports__step-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 0 5px rgba(79, 168, 255, 0.5);
}

.page-sports__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-sports__step-item p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__step-item .page-sports__btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

/* FAQ Section */
.page-sports__faq-section .page-sports__section-title {
  color: var(--gold);
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
}

details.page-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: rgba(var(--primary-color-rgb), 0.1);
}

.page-sports__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--deep-navy-rgb), 0.5);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.page-sports__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-sports__conclusion .page-sports__text-block {
  color: #444;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__section {
    padding: 50px 0;
  }

  .page-sports__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-sports__tagline {
    font-size: 18px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 12px 25px;
    font-size: 17px;
  }

  .page-sports__feature-item,
  .page-sports__promo-item,
  .page-sports__step-item {
    padding: 25px;
  }

  .page-sports__feature-title,
  .page-sports__promo-title,
  .page-sports__step-title {
    font-size: 20px;
  }

  .page-sports__text-block {
    font-size: 16px;
  }

  .page-sports__sport-card .page-sports__card-title {
    font-size: 19px;
  }

  .page-sports__sport-card p {
    font-size: 14.5px;
  }
}

@media (max-width: 849px) {
  /* HERO 主图区域 - Specific for object-fit: contain */
  .page-sports__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: auto !important;
  }
}

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

  .page-sports__hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}