/* style/sports.css */

/* Custom Colors */
:root {
  --roy79-primary: #11A84E;
  --roy79-secondary: #22C768;
  --roy79-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --roy79-card-bg: #11271B;
  --roy79-background: #08160F;
  --roy79-text-main: #F2FFF6;
  --roy79-text-secondary: #A7D9B8;
  --roy79-border: #2E7A4E;
  --roy79-glow: #57E38D;
  --roy79-gold: #F2C14E;
  --roy79-divider: #1E3A2A;
  --roy79-deep-green: #0A4B2C;
}

.page-sports {
  color: var(--roy79-text-main); /* Light text for dark body background */
  background-color: var(--roy79-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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: var(--roy79-background);
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Adjust based on desired max width for the image */
  margin-bottom: 30px;
}

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

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

.page-sports__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--roy79-gold); /* Using gold for main title for prominence */
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp for responsiveness if needed */
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
}

.page-sports__description {
  font-size: 1.1rem;
  color: var(--roy79-text-secondary);
  margin-bottom: 30px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: var(--roy79-button-gradient);
  color: var(--roy79-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sports__btn-secondary {
  background: transparent;
  color: var(--roy79-primary);
  border: 2px solid var(--roy79-primary);
}

.page-sports__btn-secondary:hover {
  background: rgba(var(--roy79-primary-rgb), 0.1);
  color: var(--roy79-secondary);
  border-color: var(--roy79-secondary);
}

.page-sports__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-sports__section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
  color: var(--roy79-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1rem;
  color: var(--roy79-text-secondary);
}

.page-sports__video-section {
  padding: 60px 20px;
  background-color: var(--roy79-background);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__video-wrapper {
  width: 100%;
  max-width: 800px;
  position: relative;
  /* 16:9 aspect ratio */
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-sports__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.page-sports__video-caption {
  font-size: 0.9rem;
  color: var(--roy79-text-secondary);
  text-align: center;
  max-width: 700px;
}

.page-sports__features-section,
.page-sports__games-section,
.page-sports__guide-section,
.page-sports__faq-section,
.page-sports__conclusion-section {
  padding: 80px 20px;
  background-color: var(--roy79-background);
}

.page-sports__features-grid,
.page-sports__games-grid,
.page-sports__guide-steps {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.page-sports__guide-steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-sports__feature-card,
.page-sports__game-card,
.page-sports__guide-card,
.page-sports__faq-item {
  background-color: var(--roy79-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--roy79-text-main);
  border: 1px solid var(--roy79-border);
}

.page-sports__feature-card:hover,
.page-sports__game-card:hover,
.page-sports__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  /* Ensure minimum size is respected */
  min-width: 80px;
  min-height: 80px;
}

.page-sports__feature-title,
.page-sports__game-title,
.page-sports__guide-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--roy79-gold);
}

.page-sports__game-title a {
  color: var(--roy79-gold);
  text-decoration: none;
}

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

.page-sports__feature-text,
.page-sports__game-description,
.page-sports__guide-text {
  font-size: 0.95rem;
  color: var(--roy79-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  /* Ensure minimum size is respected */
  min-width: 200px;
  min-height: 200px;
}

.page-sports__cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: var(--roy79-deep-green);
  gap: 40px;
}

.page-sports__cta-content {
  max-width: 600px;
  text-align: center;
}

.page-sports__cta-title {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  color: var(--roy79-gold);
  margin-bottom: 20px;
}

.page-sports__cta-description {
  font-size: 1.1rem;
  color: var(--roy79-text-secondary);
  margin-bottom: 30px;
}

.page-sports__cta-image-wrapper {
  max-width: 500px;
  width: 100%;
}

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

.page-sports__faq-item {
  text-align: left;
  padding: 20px 30px;
  margin-bottom: 20px;
  cursor: pointer;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--roy79-text-main);
  padding: 10px 0;
  list-style: none; /* For details/summary */
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--roy79-primary);
}

.page-sports__faq-answer {
  font-size: 0.95rem;
  color: var(--roy79-text-secondary);
  padding-top: 15px;
  line-height: 1.8;
  border-top: 1px solid var(--roy79-divider);
  margin-top: 15px;
}

/* Details element specific styling */
details.page-sports__faq-item[open] .page-sports__faq-question {
  margin-bottom: 10px;
}

.page-sports__conclusion-section {
  text-align: center;
  padding-bottom: 100px;
}

.page-sports__conclusion-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-image-wrapper {
    max-width: 1000px;
  }
  .page-sports__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-sports__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .page-sports__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

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

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-sports__main-title {
    font-size: clamp(1.8rem, 5vw + 1rem, 2.5rem);
  }

  .page-sports__description {
    font-size: 1rem;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-sports__section-header {
    margin-bottom: 30px;
  }

  .page-sports__section-title {
    font-size: clamp(1.5rem, 4vw + 1rem, 2.2rem);
  }

  .page-sports__video-section,
  .page-sports__features-section,
  .page-sports__games-section,
  .page-sports__cta-banner,
  .page-sports__guide-section,
  .page-sports__faq-section,
  .page-sports__conclusion-section {
    padding: 40px 15px;
  }

  .page-sports__video-wrapper,
  .page-sports__features-grid,
  .page-sports__games-grid,
  .page-sports__guide-steps,
  .page-sports__faq-list,
  .page-sports__cta-banner,
  .page-sports__cta-content,
  .page-sports__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

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

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__feature-card,
  .page-sports__game-card,
  .page-sports__guide-card,
  .page-sports__faq-item {
    padding: 20px;
  }

  .page-sports__cta-banner {
    flex-direction: column-reverse; /* Image above content on mobile */
  }
  .page-sports__cta-image-wrapper {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.5rem, 6vw + 1rem, 2.2rem);
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    font-size: 0.9rem;
    padding: 12px 25px;
  }

  .page-sports__section-title {
    font-size: clamp(1.3rem, 5vw + 1rem, 2rem);
  }

  .page-sports__feature-title,
  .page-sports__game-title,
  .page-sports__guide-title {
    font-size: 1.2rem;
  }

  .page-sports__feature-text,
  .page-sports__game-description,
  .page-sports__guide-text {
    font-size: 0.85rem;
  }
}