/* style/sports.css */

/* Base styles for the sports page, matching the dark background and light text */
.page-sports {
  background-color: var(--bg-color, #08160F); /* Fallback to custom background color */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

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

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

.page-sports__section-title {
  font-size: 2.8em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit height for aesthetic */
  object-fit: cover;
  display: block;
  margin-bottom: 40px; /* Space between image and content */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--primary-color, #11A84E);
  border: 2px solid var(--primary-color, #11A84E);
  box-shadow: 0 2px 8px rgba(17, 168, 78, 0.2);
}

.page-sports__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 168, 78, 0.3);
}

.page-sports__btn-tertiary {
  background: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-sports__btn-tertiary:hover {
  background: var(--deep-green, #0A4B2C);
  border-color: var(--glow, #57E38D);
  transform: translateY(-2px);
}

/* Card styles */
.page-sports__feature-card,
.page-sports__sport-card,
.page-sports__step-card,
.page-sports__promo-card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
}

.page-sports__feature-card:hover,
.page-sports__sport-card:hover,
.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-sports__feature-image,
.page-sports__sport-image,
.page-sports__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  min-width: 200px;
  min-height: 200px;
}

.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__step-title,
.page-sports__promo-title {
  font-size: 1.6em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__feature-text,
.page-sports__sport-text,
.page-sports__step-text,
.page-sports__promo-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1; /* Allow text to take up available space */
}

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

.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__step-card {
  text-align: left;
}

.page-sports__step-title {
  color: var(--glow, #57E38D); /* Highlight step titles */
  font-size: 1.8em;
  margin-bottom: 10px;
}

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

/* Responsible Gaming */
.page-sports__responsible-gaming {
  background-color: var(--deep-green, #0A4B2C);
  padding: 80px 0;
}

.page-sports__responsible-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-sports__responsible-item {
  position: relative;
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  padding-left: 30px;
  margin-bottom: 15px;
}

.page-sports__responsible-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-weight: bold;
}

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

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

.page-sports__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow, #57E38D);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

/* Contact CTA Section */
.page-sports__contact-cta {
  background-color: var(--card-bg, #11271B);
  padding: 80px 0;
  text-align: center;
}

.page-sports__contact-cta .page-sports__section-description {
  margin-bottom: 40px;
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Global image styles */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure images don't have extra space below them */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__hero-title {
    font-size: clamp(2em, 6vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 1em;
  }
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile hero */
    padding-bottom: 40px;
  }
  .page-sports__hero-image {
    max-height: 400px;
    margin-bottom: 20px;
  }
  .page-sports__hero-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-sports__hero-cta-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (if any) */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* All content containers for mobile */
  .page-sports__section,
  .page-sports__container,
  .page-sports__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__feature-card,
  .page-sports__sport-card,
  .page-sports__step-card,
  .page-sports__promo-card {
    padding: 20px;
  }

  .page-sports__feature-image,
  .page-sports__sport-image,
  .page-sports__promo-image {
    height: 180px;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__hero-title {
    font-size: clamp(1.5em, 9vw, 2em);
  }
  .page-sports__feature-title,
  .page-sports__sport-title,
  .page-sports__step-title,
  .page-sports__promo-title {
    font-size: 1.4em;
  }
}