/* style/sports.css */

/* Base Styles */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background */
}

.page-sports__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark backgrounds */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from parent section */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__subtitle {
  font-size: 1.5em;
  color: inherit;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  color: inherit;
}

.page-sports__card {
  background: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-sports__dark-section .page-sports__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-sports__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-content {
  z-index: 10;
  max-width: 900px;
}

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

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(38, 169, 224, 0.8); /* Overlay for contrast */
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

/* Features Section */
.page-sports__features-section,
.page-sports__how-to-section,
.page-sports__popular-sports-section,
.page-sports__promotions-section,
.page-sports__responsible-gambling-section,
.page-sports__faq-section,
.page-sports__cta-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-sports__feature-image,
.page-sports__sport-image,
.page-sports__promo-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* How-To Section */
.page-sports__how-to-section .page-sports__card {
  justify-content: space-between;
}

/* Responsible Gambling Section */
.page-sports__responsible-gambling-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__text-block {
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f8f8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-sports__responsible-gambling-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-sports__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-sports__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 0;
  color: #333333;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #26A9E0;
  user-select: none;
  list-style: none;
}

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

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

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

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

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

/* CTA Section */
.page-sports__cta-section {
  text-align: center;
  padding: 60px 20px;
}

.page-sports__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Image sizing for content area - must be >= 200px */
.page-sports__feature-image, 
.page-sports__sport-image, 
.page-sports__promo-image {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .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%;
    max-width: 300px; /* Constrain width for better look on small screens */
  }

  .page-sports__features-section,
  .page-sports__how-to-section,
  .page-sports__popular-sports-section,
  .page-sports__promotions-section,
  .page-sports__responsible-gambling-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 40px 15px;
    max-width: 100%;
    box-sizing: border-box !important;
  }

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-sports__responsible-gambling-content {
    grid-template-columns: 1fr;
  }

  /* Mobile responsive for images, videos, buttons - MUST use !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__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    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__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

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