/* style/sports.css */

/* Common styles for page-sports */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background for consistency */
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #121212; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-sports__btn-primary:hover {
  background-color: #e6c200;
  color: #000000;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-sports a {
  color: #FFD700;
  text-decoration: none;
}

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

/* Section backgrounds */
.page-sports__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #2a2a2a;
  color: #ffffff;
}

/* Card styles */
.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

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

.page-sports__card h3 {
  color: #FFD700;
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-sports__card p {
  color: #e0e0e0;
  font-size: 0.95em;
  line-height: 1.5;
}

.page-sports__card img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 100px 20px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Brand colors gradient */
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  border-radius: 12px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.5;
}

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

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
}

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

.page-sports__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Popular Sports Section */
.page-sports__popular-sports {
  padding: 80px 0;
}

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

.page-sports__sport-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* How to Start Section */
.page-sports__how-to-start {
  padding: 80px 0;
}

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

.page-sports__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.page-sports__step-icon {
  background-color: #FFD700;
  color: #121212;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-sports__step-card .page-sports__btn-primary,
.page-sports__step-card .page-sports__btn-secondary {
  margin-top: 20px;
  width: 100%;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

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

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Tips & Strategies Section */
.page-sports__tips-strategies {
  padding: 80px 0;
}

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

.page-sports__tip-item {
  text-align: left;
}

.page-sports__tip-item h3 {
  color: #FFD700;
  font-size: 1.4em;
  margin-top: 0;
}

.page-sports__tip-item p {
  color: #e0e0e0;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming {
  padding: 80px 0;
}

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

.page-sports__responsible-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-sports__contact-responsible {
  text-align: center;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

.page-sports__faq-item {
  margin-bottom: 15px;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.page-sports__faq-question {
  background-color: #8B0000; /* Dark Red */
  color: #ffffff;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #a00000;
}

.page-sports__faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-sports__faq-answer p {
  color: #e0e0e0;
  margin: 0;
}

/* Call to Action Section */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__section-description {
    font-size: 1em;
  }
}

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

  .page-sports__hero-section {
    padding: 80px 15px;
    min-height: 500px;
  }

  .page-sports__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__section-description {
    font-size: 0.95em;
  }

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__features-section,
  .page-sports__popular-sports,
  .page-sports__how-to-start,
  .page-sports__promotions-section,
  .page-sports__tips-strategies,
  .page-sports__responsible-gaming,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 60px 0;
  }

  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__steps-grid,
  .page-sports__promotions-grid,
  .page-sports__tips-grid,
  .page-sports__responsible-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-sports__faq-question,
  .page-sports__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__popular-sports,
  .page-sports__how-to-start,
  .page-sports__promotions-section,
  .page-sports__tips-strategies,
  .page-sports__responsible-gaming,
  .page-sports__faq-section,
  .page-sports__cta-section,
  .page-sports__hero-buttons,
  .page-sports__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific adjustments for button groups */
  .page-sports__hero-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-sports__step-card .page-sports__btn-primary,
  .page-sports__step-card .page-sports__btn-secondary {
    width: calc(100% - 30px); /* Account for card padding */
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
}