/* style/sports.css */

/* --- General Styles for .page-sports scope --- */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  background-color: #ffffff; /* Explicitly set to match default body */
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-sports__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-sports__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__card-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Red for register/login type buttons */
  color: #FFFFFF; /* White text for contrast with red background */
  border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-sports__card-link {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #017439;
  color: #FFFFFF;
  border: none;
  margin-top: 15px;
}

.page-sports__card-link:hover {
  background-color: #005a2e;
  transform: translateY(-1px);
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

/* --- Section backgrounds --- */
.page-sports__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-sports__light-bg {
  background-color: #f8f8f8; /* Light grey background */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

.page-sports__dark-bg .page-sports__section-title {
  color: #ffffff;
}

.page-sports__dark-bg .page-sports__section-title::after {
  background-color: #ffffff;
}

.page-sports__dark-bg .page-sports__text-block {
  color: #f0f0f0;
}


/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #f0f0f0; /* Light background for hero section */
}

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

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

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

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

.page-sports__hero-title {
  font-size: 52px;
  font-weight: 900;
  color: #017439; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__hero-subtitle {
  font-size: 22px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Intro Section --- */
.page-sports__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-sports__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.page-sports__feature-card .page-sports__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-sports__feature-card p {
  font-size: 16px;
  color: #555555;
}

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

.page-sports__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  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: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-sports__category-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-sports__category-card .page-sports__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__category-card p {
  font-size: 15px;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-sports__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-sports__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #C30808; /* Red for promotions */
  margin-bottom: 15px;
}

.page-sports__promo-card p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

/* --- Guide Section --- */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__guide-step {
  background-color: #ffffff;
  border-radius: 12px;
  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: #333333;
}

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

.page-sports__step-icon {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__guide-step .page-sports__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__guide-step p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
}

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

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

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

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

.page-sports__faq-item.active .page-sports__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.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: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Brand primary color */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #C30808; /* Red when active */
  transform: rotate(45deg); /* Rotate to form an 'X' or just change to '-' */
}

.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.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-color: #d0d0d0;
}

.page-sports__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 0;
}

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

.page-sports__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

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

.page-sports__news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-sports__news-card .page-sports__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin: 20px 20px 10px 20px;
}

.page-sports__news-card .page-sports__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__news-card .page-sports__card-title a:hover {
  color: #005a2e;
  text-decoration: underline;
}

.page-sports__news-card p {
  font-size: 16px;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-sports__news-card .page-sports__news-date {
  font-size: 14px;
  color: #999999;
  padding: 0 20px 20px 20px;
  display: block;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    padding-bottom: 40px;
  }

  .page-sports__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
}