:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #017439; /* Using primary color for dark background sections */
  --btn-register-bg: #C30808;
  --btn-register-text: #FFFF00;
  --btn-login-bg: #C30808;
  --btn-login-text: #FFFF00;
}

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

/* Ensure padding-top for fixed header offset */
.page-sports__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

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

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-sports__section-title {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-sports__section-title--white {
  color: var(--text-light);
}

.page-sports__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}
.page-sports__dark-bg .page-sports__text-block a {
  color: var(--btn-register-text); /* Use a contrasting color for links on dark background */
}

/* HERO Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding-bottom as padding-top is for offset */
  background: linear-gradient(135deg, var(--primary-color), #37a86e); /* Gradient background with brand color */
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden; /* Ensure image doesn't overflow its container */
}

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

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

.page-sports__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  color: var(--text-light);
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--btn-register-bg); /* Use custom color for CTA */
  color: var(--btn-register-text); /* Use custom color for CTA text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* General Buttons */
.page-sports__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-sports__btn-primary:hover {
  background: #005f2c; /* Darker green for hover */
  transform: translateY(-1px);
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.page-sports__btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

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

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

/* Sports Types Section */
.page-sports__types-section .page-sports__section-title {
  margin-bottom: 50px;
}

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

.page-sports__card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  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;
  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--dark-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__card--dark-bg .page-sports__card-title {
  color: var(--text-light);
}
.page-sports__card--dark-bg .page-sports__card-description {
  color: rgba(255, 255, 255, 0.9);
}


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

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

.page-sports__card-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}

/* Why Choose Section */
.page-sports__why-choose-section {
  padding-bottom: 40px;
}

.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-color: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

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

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

.page-sports__feature-description {
  font-size: 15px;
  line-height: 1.7;
}

/* Guide Section */
.page-sports__guide-section {
  padding-bottom: 40px;
}

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

.page-sports__step-item {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-sports__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

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

.page-sports__step-description {
  font-size: 15px;
  line-height: 1.7;
}