/* style/sports.css */

/* Base styles for dark background */
.page-sports {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body handles the main background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-sports__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* H1/H2 font size clamp for responsiveness */
  font-weight: 700;
  color: #ffffff; /* Light color for titles on dark background */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

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

.page-sports__highlight {
  color: #FFFF00; /* Custom font color for registration/login, good contrast on dark */
  font-weight: bold;
}

.page-sports__link {
  color: #FFFF00; /* Custom font color for registration/login, good contrast on dark */
  text-decoration: underline;
}

.page-sports__link:hover {
  color: #017439; /* Primary color on hover for links */
  text-decoration: none;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding and border are included in width */
}

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

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

.page-sports__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #017439; /* Primary color as border */
}

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

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

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #017439; /* Primary color as background for hero section */
  color: #ffffff;
}

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

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-sports__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-sports__hero-description {
  font-size: 1.15rem;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections with dark background */
.page-sports__intro-section,
.page-sports__guide-section,
.page-sports__tips-section {
  padding: 60px 20px;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
}

.page-sports__lobbies-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  padding: 60px 20px;
  background-color: #0d0d1e; /* Slightly different dark background */
  color: #ffffff;
}

.page-sports__conclusion-section {
  padding: 60px 20px;
  background-color: #017439; /* Primary color as background */
  color: #ffffff;
  text-align: center;
}

.page-sports__conclusion-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__conclusion-section .page-sports__text-block {
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__feature-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight title with custom yellow */
}

.page-sports__feature-text {
  font-size: 1rem;
  line-height: 1.6;
}

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

.page-sports__lobby-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-sports__lobby-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__lobby-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  color: #FFFF00; /* Highlight title with custom yellow */
}

.page-sports__lobby-description {
  font-size: 0.95rem;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
  flex-grow: 1; /* Make description take available space */
}

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

.page-sports__step-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #017439; /* Primary color for step number */
  margin-bottom: 15px;
}

.page-sports__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00; /* Highlight title with custom yellow */
}

.page-sports__step-text {
  font-size: 1rem;
  line-height: 1.6;
}

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

.page-sports__promotion-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-sports__promotion-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__promotion-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  color: #FFFF00; /* Highlight title with custom yellow */
}

.page-sports__promotion-text {
  font-size: 0.95rem;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
  flex-grow: 1;
}

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

.page-sports__tip-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__tip-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00; /* Highlight title with custom yellow */
}

.page-sports__tip-text {
  font-size: 1rem;
  line-height: 1.6;
}

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

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Ensure content doesn't overflow when collapsed */
  color: #ffffff;
}

.page-sports__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFF00; /* Highlight question with custom yellow */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439; /* Primary color for toggle icon */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-sports__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

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

  .page-sports__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
  }

  .page-sports__section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-sports__hero-title {
    font-size: 2.2rem;
  }

  .page-sports__hero-description {
    font-size: 1rem;
  }

  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important; /* Allow long words to break */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__lobby-card,
  .page-sports__promotion-card,
  .page-sports__step-card,
  .page-sports__feature-card,
  .page-sports__tip-item,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding-left/right here to avoid double padding with .page-sports__container */
  }

  .page-sports__lobby-image,
  .page-sports__promotion-image {
    height: 180px; /* Adjust image height for smaller screens */
  }

  .page-sports__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-sports__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

/* Ensure content area images maintain minimum size if not directly within a card */
.page-sports__content-area img {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure all images in content area are responsive */
.page-sports__content-area img,
.page-sports__lobbies-section img,
.page-sports__promotions-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* No CSS filter on images */
.page-sports img {
  filter: none !important;
}