/* style/sports.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson */
  --dark-bg-color: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-sports {
  padding-top: 180px; /* Adjust for fixed header */
  background-color: var(--dark-bg-color); /* Inherit from body */
  color: var(--light-text-color); /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-sports__light-bg {
  background-color: #f1f3f5; /* Lighter background for contrast sections */
  color: var(--dark-text-color);
}

/* HERO Banner Section */
.page-sports__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.page-sports__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-sports__main-heading {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 20px;
  color: var(--light-text-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none; /* Ensure no default border */
}

.page-sports__btn-primary {
  background: var(--primary-color);
  color: var(--dark-text-color); /* Primary color is light, so use dark text */
}

.page-sports__btn-primary:hover {
  background: #e6c100;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
  background: var(--secondary-color);
  color: var(--light-text-color); /* Secondary color is dark, so use light text */
}

.page-sports__btn-secondary:hover {
  background: #b81132;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

.page-sports__light-bg .page-sports__section-title {
  color: var(--secondary-color); /* Darker title on light background */
}

.page-sports__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-sports__dark-bg .page-sports__text-block {
  color: rgba(255, 255, 255, 0.9);
}

.page-sports__light-bg .page-sports__text-block {
  color: var(--dark-text-color);
}

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

.page-sports__link-in-text:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Featured Games Section */
.page-sports__featured-games-section .page-sports__section-title {
  color: var(--primary-color);
}

.page-sports__game-category {
  margin-bottom: 60px;
  padding: 30px;
  border-radius: 10px;
  background-color: var(--card-bg-dark); /* Semi-transparent white on dark bg */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__game-category--reversed .page-sports__category-content {
  flex-direction: row-reverse;
}

.page-sports__category-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-sports__category-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-sports__category-image {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__category-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
}

.page-sports__category-text p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.page-sports__category-text .page-sports__cta-button {
  margin-top: 20px;
}

/* Promotions Section */
.page-sports__promotions-section .page-sports__section-title {
  color: var(--secondary-color);
}

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

.page-sports__promotion-card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark-text-color);
}

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

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

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

.page-sports__promotion-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--dark-text-color);
}

/* Latest News Section */
.page-sports__latest-news-section .page-sports__section-title {
  color: var(--primary-color);
}

.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-color: var(--card-bg-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--light-text-color);
}

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

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

.page-sports__news-content {
  padding: 20px;
}

.page-sports__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-sports__news-title a:hover {
  color: var(--light-text-color);
  text-decoration: underline;
}

.page-sports__news-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.page-sports__read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-sports__read-more:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-sports__news-date {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 15px;
}

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

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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-answer p {
  color: var(--dark-text-color);
  font-size: 15px;
}

.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(--dark-text-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(--secondary-color);
  transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__category-image {
    flex: 0 0 300px;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    padding-top: 140px; /* Adjust for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__container {
    padding: 20px 15px;
  }

  .page-sports__main-heading {
    font-size: 36px;
  }

  .page-sports__hero-description {
    font-size: 18px;
  }

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

  .page-sports__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }

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

  .page-sports__game-category {
    padding: 20px;
  }

  .page-sports__category-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-sports__category-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-sports__category-image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

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

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

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

  .page-sports__promotion-image {
    height: 180px;
  }

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

  .page-sports__news-image {
    height: 180px;
  }

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

  .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;
  }
}