/* style/sports.css */
:root {
  --primary-color: #FF4500;
  --secondary-color: #00CED1;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f1f3f5;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

/* Ensure proper top padding for fixed header */
.page-sports__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.page-sports__hero-image {
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-sports__hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

.page-sports__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
  color: var(--text-light);
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  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, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-sports__cta-button:hover {
  background: #E53E00; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--wide {
  min-width: 300px;
  padding: 18px 50px;
  font-size: 20px;
}

.page-sports__cta-button--small {
  padding: 10px 25px;
  font-size: 15px;
}

.page-sports__cta-button--guide {
  padding: 10px 25px;
  font-size: 15px;
  margin-top: 15px;
}

.page-sports__section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1); /* Consistent with body */
  color: var(--text-light);
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
  line-height: 1.3;
}

.page-sports__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
  color: #e0e0e0; /* Slightly lighter for readability */
}

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

.page-sports__image--large {
  max-width: 900px;
}

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

.page-sports__card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark); /* Dark text on light card background */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-sports__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

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

.page-sports__card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-sports__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background for dark theme */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

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

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

.page-sports__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-sports__link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-sports__link:hover {
  color: #00A3A6; /* Slightly darker secondary */
  text-decoration: underline;
}

.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: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__promo-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

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

.page-sports__promo-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-sports__guide-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-sports__guide-description {
  font-size: 17px;
  line-height: 1.7;
  color: #e0e0e0;
}

.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: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__news-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

.page-sports__news-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--primary-color);
}

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

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

.page-sports__news-excerpt {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-sports__read-more-button:hover {
  background: #00A3A6;
  transform: translateY(-1px);
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent for dark theme */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter for question header */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-sports__faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: 32px;
  height: 32px;
}

.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 25px;
  opacity: 0;
  color: #e0e0e0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change + to X or - */
}

.page-sports__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 36px;
  }
  .page-sports__hero-description {
    font-size: 17px;
  }
  .page-sports__section-title {
    font-size: 30px;
  }
  .page-sports__card-title, .page-sports__promo-title {
    font-size: 22px;
  }
  .page-sports__feature-title {
    font-size: 20px;
  }
  .page-sports__guide-title {
    font-size: 24px;
  }
  .page-sports__news-title {
    font-size: 20px;
  }
  .page-sports__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-image {
    margin-bottom: 20px;
  }
  .page-sports__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-sports__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-sports__cta-button--wide {
    min-width: unset;
    width: 100%;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 18px;
  }
  .page-sports__cta-button--small {
    padding: 8px 18px;
    font-size: 14px;
  }
  .page-sports__cta-button--guide {
    padding: 8px 18px;
    font-size: 14px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-sports__section {
    padding: 40px 15px;
  }
  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-sports__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-sports__grid, .page-sports__features-grid, .page-sports__promo-grid, .page-sports__news-grid {
    gap: 20px;
  }
  .page-sports__card, .page-sports__feature-item, .page-sports__promo-card, .page-sports__guide-item, .page-sports__news-card {
    padding: 20px;
  }
  .page-sports__card-image, .page-sports__promo-image, .page-sports__news-image {
    height: 180px;
  }
  .page-sports__card-title, .page-sports__promo-title {
    font-size: 20px;
  }
  .page-sports__feature-title {
    font-size: 18px;
  }
  .page-sports__guide-title {
    font-size: 22px;
  }
  .page-sports__news-title {
    font-size: 18px;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
  }
  .page-sports__faq-question h3 {
    font-size: 16px;
  }
  .page-sports__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px !important;
  }
  .page-sports__faq-answer p {
    font-size: 15px;
  }

  /* Mobile image responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-sports__section, .page-sports__card, .page-sports__container, .page-sports__hero-section, .page-sports__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-sports__hero-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-sports__hero-img {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 26px;
  }
  .page-sports__section-title {
    font-size: 22px;
  }
  .page-sports__card-title, .page-sports__promo-title {
    font-size: 18px;
  }
  .page-sports__feature-title {
    font-size: 17px;
  }
  .page-sports__guide-title {
    font-size: 20px;
  }
  .page-sports__news-title {
    font-size: 16px;
  }
  .page-sports__cta-button {
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-sports__cta-button--small {
    width: 100%;
    max-width: 180px;
  }
  .page-sports__cta-button--guide {
    max-width: 150px;
  }
}