/* style/sports.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --dark-bg-1: #0d0d0d; /* Assuming a dark background from shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
}

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

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

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

.page-sports__main-title,
.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
}

.page-sports__section-title {
  font-size: 30px;
  margin-top: 50px;
}

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

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

/* General Card Styles */
.page-sports__card,
.page-sports__promo-card,
.page-sports__news-card {
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__card-image,
.page-sports__promo-image,
.page-sports__news-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

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

.page-sports__card-description,
.page-sports__promo-description,
.page-sports__news-excerpt {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-promo,
.page-sports__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.page-sports__btn-primary:hover {
  background: #0056b3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-sports__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-promo {
  background: var(--secondary-color);
  color: var(--text-light);
  margin-top: auto; /* Push to bottom of card */
}

.page-sports__btn-promo:hover {
  background: #218838;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-text {
  color: var(--primary-color);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  margin-top: auto; /* Push to bottom of card */
}

.page-sports__btn-text:hover {
  color: #0056b3;
}

.page-sports__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Intro Section */
.page-sports__intro-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding-bottom: 60px;
}

.page-sports__intro-section .page-sports__main-title {
  color: var(--text-light);
}

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

/* Types Section */
.page-sports__types-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-sports__types-section .page-sports__section-title,
.page-sports__types-section .page-sports__text-block {
  color: var(--text-light);
}

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

/* Benefits Section */
.page-sports__benefits-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-sports__benefits-section .page-sports__section-title,
.page-sports__benefits-section .page-sports__text-block {
  color: var(--text-dark);
}

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

.page-sports__feature-item {
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

/* Strategies Section */
.page-sports__strategies-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-sports__strategies-section .page-sports__section-title,
.page-sports__strategies-section .page-sports__text-block {
  color: var(--text-light);
}

.page-sports__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__strategy-list li {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.7;
  border-left: 5px solid var(--secondary-color);
}

.page-sports__list-item-title {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__text-block {
  color: var(--text-dark);
}

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

.page-sports__promo-image {
  height: 200px; /* Adjust for promo cards */
}

/* News Section */
.page-sports__news-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

.page-sports__news-section .page-sports__section-title,
.page-sports__news-section .page-sports__text-block {
  color: var(--text-light);
}

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

.page-sports__news-card {
  flex-direction: row; /* Horizontal layout for news cards */
  text-align: left;
  padding: 20px;
}

.page-sports__news-image {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 20px;
  margin-bottom: 0; /* Override default */
  flex-shrink: 0;
}

.page-sports__news-content {
  flex-grow: 1;
}

.page-sports__news-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

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

.page-sports__news-link:hover {
  text-decoration: underline;
}

.page-sports__news-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.page-sports__news-date {
  font-size: 13px;
  color: #777;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-sports__faq-section .page-sports__section-title,
.page-sports__faq-section .page-sports__text-block {
  color: var(--text-dark);
}

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.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(--border-color);
  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(--text-dark);
}

.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);
  transform: rotate(45deg);
}

.page-sports__faq-answer p {
  color: var(--text-dark);
  font-size: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 32px;
  }
  .page-sports__section-title {
    font-size: 26px;
  }
  .page-sports__text-block {
    font-size: 17px;
  }
  .page-sports__card-title,
  .page-sports__promo-title,
  .page-sports__news-title {
    font-size: 20px;
  }
  .page-sports__card-description,
  .page-sports__promo-description,
  .page-sports__news-excerpt {
    font-size: 15px;
  }
  .page-sports__feature-title {
    font-size: 18px;
  }
  .page-sports__feature-item p {
    font-size: 14px;
  }
  .page-sports__strategy-list li {
    font-size: 16px;
  }
  .page-sports__news-card {
    flex-direction: column;
    align-items: center;
  }
  .page-sports__news-image {
    width: 100%;
    height: 180px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-sports__news-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-sports__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
  }
  .page-sports__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-sports__section-title {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 25px;
  }
  .page-sports__text-block {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-promo {
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-sports__grid-container,
  .page-sports__features-grid,
  .page-sports__promo-grid,
  .page-sports__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__card-image,
  .page-sports__promo-image {
    height: 180px;
  }
  .page-sports__card-title,
  .page-sports__promo-title,
  .page-sports__news-title {
    font-size: 18px;
  }
  .page-sports__card-description,
  .page-sports__promo-description,
  .page-sports__news-excerpt {
    font-size: 14px;
  }
  .page-sports__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-sports__feature-title {
    font-size: 16px;
  }
  .page-sports__feature-item p {
    font-size: 13px;
  }
  .page-sports__strategy-list li {
    font-size: 15px;
    padding: 15px 20px;
  }
  .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 are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__news-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-sports__news-image {
    width: 100%;
    height: 150px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-sports__news-content {
    width: 100%;
  }
}