/* style/sports.css */

/* --- General Styles for page-sports scope --- */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #FFFFFF; /* White for dark backgrounds */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-sports__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
}

.page-sports__paragraph--small {
  font-size: 0.9em;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.page-sports__highlight {
  color: #FFFF00; /* Custom font color for register/login, used as highlight here */
  font-weight: bold;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-sports__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-sports__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Prevent container overflow */
  box-sizing: border-box; /* Include padding and border */
  overflow: hidden; /* Hide overflowing content */
}

.page-sports a {
  color: #FFFF00; /* Highlight links with custom yellow */
  text-decoration: none;
}

.page-sports a:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden;
  background-color: #017439; /* Brand color for hero section */
}

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

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
  /* No filter property for color change, only brightness */
}

.page-sports__hero-section .page-sports__container {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* --- About Section --- */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-sports__about-section .page-sports__section-title,
.page-sports__about-section .page-sports__paragraph {
  color: #333333;
}

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

.page-sports__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
}

.page-sports__feature-icon {
  width: 200px; /* Minimum size requirement */
  height: 133px; /* Maintain aspect ratio */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: #017439; /* Main brand color */
  margin-bottom: 15px;
}

.page-sports__feature-description {
  font-size: 1em;
  color: #555555;
  text-align: center;
}

/* --- Video Section --- */
.page-sports__video-section {
  position: relative;
  padding: 80px 0;
  background-color: #121212; /* Body background color */
  color: #FFFFFF;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  box-sizing: border-box; /* Important for responsive */
}

.page-sports__video-wrapper a {
  display: block;
  cursor: pointer;
}

.page-sports__video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Sports Types Section --- */
.page-sports__sports-types-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-sports__sports-types-section .page-sports__section-title,
.page-sports__sports-types-section .page-sports__paragraph {
  color: #333333;
}

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

.page-sports__sport-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-sports__sport-card:hover {
  transform: translateY(-5px);
}

.page-sports__sport-image {
  width: 300px; /* Minimum size requirement */
  height: 225px; /* Maintain aspect ratio */
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__sport-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__sport-description {
  font-size: 0.95em;
  color: #555555;
  text-align: center;
}

/* --- Promotions Section --- */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #017439; /* Main brand color */
  color: #FFFFFF;
  text-align: center;
}

.page-sports__promotions-section .page-sports__section-title {
  color: #FFFFFF;
}

/* --- Guide Section --- */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-sports__guide-section .page-sports__section-title,
.page-sports__guide-section .page-sports__paragraph {
  color: #333333;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__guide-item .page-sports__paragraph {
  text-align: left;
  font-size: 1em;
  color: #555555;
}

/* --- FAQ Section --- */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #121212; /* Body background color */
  color: #FFFFFF;
}

.page-sports__faq-section .page-sports__section-title {
  color: #FFFFFF;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  font-size: 1.2em;
  color: #FFFFFF;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Custom yellow for toggle icon */
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}