/* style/sports.css */

/* Base styles for the page content, ensuring contrast with default white body background */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light background */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set for clarity, though body is white */
}

/* Header offset for fixed header */
.page-sports__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for consistent spacing */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-sports__intro-section,
.page-sports__sports-types-section,
.page-sports__guide-section,
.page-sports__security-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-sports__video-section,
.page-sports__features-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #017439; /* Dark brand color background */
  color: #ffffff; /* White text for dark background */
}

/* Section Titles */
.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Primary color for titles on light backgrounds */
}

.page-sports__section-title--white {
  color: #ffffff; /* White for titles on dark backgrounds */
}

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

.page-sports__text-block--white {
  color: #ffffff;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Fallback background */
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 0 20px;
}

.page-sports__hero-title {
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

.page-sports__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary.page-sports__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-sports__btn-primary.page-sports__btn-download {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
}

/* Video Section */
.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it behaves as a block element */
}

.page-sports__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Make sure the link covers the video for click handling */
  cursor: pointer;
}

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

.page-sports__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  display: block; /* Ensure no extra space below image */
}

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

.page-sports__card-description {
  font-size: 16px;
  line-height: 1.6;
  flex-grow: 1; /* Make description take available space */
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-sports__feature-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-sports__feature-description {
  font-size: 17px;
  line-height: 1.6;
}

.page-sports__feature-image {
  width: 100%;
  height: auto;
  max-height: 300px; /* Constrain height */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px;
  min-height: 200px;
  display: block;
}

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

.page-sports__guide-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #333333;
}

.page-sports__guide-step-title {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
}

.page-sports__guide-step-description {
  font-size: 17px;
  line-height: 1.6;
}

/* Promotions Section */
.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-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}