/* style/sports.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --dark-bg-1: #0d0d0d; /* Assuming a dark body background from shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --gray-light: #f1f3f5;
  --gray-medium: #e0e0e0;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
}

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

/* Top spacing for fixed header */
.page-sports__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

.page-sports__intro-section,
.page-sports__general-info-section,
.page-sports__promotions-section,
.page-sports__latest-news-section,
.page-sports__faq-section {
  padding-bottom: 60px;
  background-color: var(--gray-light); /* Light background for main content sections */
  color: var(--text-dark); /* Dark text on light background */
}

.page-sports__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-sports__text-light {
  color: var(--text-light);
}

.page-sports__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-sports__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-sports__cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto 40px auto;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--primary-color), #004d99);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
  border: none;
}

.page-sports__cta-button:hover {
  background: linear-gradient(135deg, #004d99, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

.page-sports__section-title {
  font-size: 34px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-sports__dark-bg .page-sports__section-title {
  color: var(--secondary-color);
}

.page-sports__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-sports__dark-bg .page-sports__text-block {
  color: var(--text-light);
}

.page-sports__strong-text {
  font-weight: bold;
}

.page-sports__highlight {
  color: var(--secondary-color);
}

/* Feature Grid */
.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-sports__feature-icon {
  width: 100px;
  height: auto;
  max-width: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__feature-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-sports__sport-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

.page-sports__sport-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 20px 20px 10px;
}

.page-sports__sport-card p {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--text-dark);
}

.page-sports__card-button {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease;
}

.page-sports__card-button:hover {
  background-color: #e6b800;
}

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

.page-sports__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

.page-sports__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 20px 20px 10px;
}

.page-sports__promo-card p {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--text-dark);
}

.page-sports__center-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Latest News Grid */
.page-sports__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__news-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

.page-sports__news-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 20px 20px 10px;
}

.page-sports__news-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__news-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-sports__news-excerpt {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 20px 10px;
  color: var(--text-dark);
}

.page-sports__news-date {
  display: block;
  font-size: 13px;
  color: #888888;
  padding: 0 20px 20px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding-top: 60px;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--gray-medium);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-sports__faq-question:active {
  background: #eeeeee;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: var(--primary-color);
}

/* Image responsiveness */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive design */
@media (max-width: 992px) {
  .page-sports__main-title {
    font-size: 36px;
  }

  .page-sports__section-title {
    font-size: 28px;
  }

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

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

  .page-sports__sport-card h3,
  .page-sports__promo-title,
  .page-sports__news-title {
    font-size: 20px;
  }

  .page-sports__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  /* Mobile specific padding-top for fixed header */
  .page-sports__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
  }

  .page-sports__intro-section,
  .page-sports__general-info-section,
  .page-sports__promotions-section,
  .page-sports__latest-news-section,
  .page-sports__faq-section {
    padding-bottom: 40px;
  }

  .page-sports__main-title {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .page-sports__description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-sports__section-title {
    font-size: 24px;
    margin-bottom: 30px;
    margin-top: 40px;
  }

  .page-sports__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-sports__feature-grid,
  .page-sports__sports-grid,
  .page-sports__promo-grid,
  .page-sports__news-grid {
    gap: 20px;
    margin-top: 30px;
  }

  .page-sports__feature-item,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__news-card {
    padding: 20px;
  }

  .page-sports__feature-icon {
    width: 80px;
    max-width: 80px;
    margin-bottom: 15px;
  }

  .page-sports__feature-title {
    font-size: 18px;
  }

  .page-sports__sport-image,
  .page-sports__promo-image,
  .page-sports__news-image {
    height: 160px;
  }

  .page-sports__sport-card h3,
  .page-sports__promo-title,
  .page-sports__news-title {
    font-size: 18px;
    padding: 15px 15px 8px;
  }

  .page-sports__sport-card p,
  .page-sports__promo-card p,
  .page-sports__news-excerpt {
    font-size: 14px;
    padding: 0 15px 15px;
  }

  .page-sports__news-date {
    padding: 0 15px 15px;
  }

  .page-sports__card-button {
    padding: 10px 15px;
    font-size: 14px;
  }

  .page-sports__center-button-wrapper {
    margin-top: 40px;
  }

  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-sports__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-sports__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and containers are fully responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__intro-section,
  .page-sports__general-info-section,
  .page-sports__game-types-section,
  .page-sports__promotions-section,
  .page-sports__latest-news-section,
  .page-sports__faq-section,
  .page-sports__container,
  .page-sports__feature-item,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}