/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a2e), so text should be light */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__link-text {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-sports__link-text:hover {
  color: #EA7C07;
}

/* --- Color Scheme & Contrast --- */
.page-sports__dark-section {
  background: #1a1a2e; /* Inherited from body, explicit for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__light-bg {
  background: #ffffff;
  color: #333333; /* Dark text on light background */
  padding: 60px 0;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__card-title,
.page-sports__light-bg .page-sports__feature-title {
  color: #26A9E0;
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__light-card {
  background: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__light-card .page-sports__card-title {
  color: #26A9E0;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body handles header offset, small decorative top padding */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-sports__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-sports__main-title {
  font-size: 3.2em;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__subtitle {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* --- Sports Categories Grid --- */
.page-sports__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-sports__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-sports__light-card .page-sports__card-text {
  color: #555555;
}

/* --- Betting Types List --- */
.page-sports__list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  font-size: 1.1em;
  color: #333333;
  margin-top: 30px;
}

.page-sports__list-item {
  margin-bottom: 10px;
}

.page-sports__list-item strong {
  color: #26A9E0;
}

/* --- Live Betting Section --- */
.page-sports__grid-2-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-sports__grid-2-col-reverse .page-sports__image-wrapper {
  order: 2;
}

.page-sports__grid-2-col-reverse .page-sports__text-content {
  order: 1;
}

.page-sports__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Promotions Section --- */
.page-sports__grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-sports__view-all-promotions {
  text-align: center;
  margin-top: 50px;
}

/* --- Why Choose Us Section --- */
.page-sports__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.page-sports__feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-sports__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* --- Get Started Section --- */
.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  counter-reset: step-counter;
}

.page-sports__step-item {
  counter-increment: step-counter;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
  font-size: 1.1em;
  color: #333333;
}

.page-sports__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-sports__step-item strong {
  color: #26A9E0;
}

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

/* --- Responsible Gaming --- */
.page-sports__responsible-gaming .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__responsible-gaming .page-sports__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-sports__responsible-gaming .page-sports__link-text {
  display: block;
  text-align: center;
  margin-top: 20px;
}

/* --- FAQ Section --- */
.page-sports__faq-list {
  margin-top: 30px;
}

.page-sports__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 0 25px 15px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-item summary {
  list-style: none;
}

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

/* --- CTA Section --- */
.page-sports__cta-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__cta-section .page-sports__text-block {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

  .page-sports__subtitle {
    font-size: 1.15em;
  }

  .page-sports__grid-2-col-reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-sports__grid-2-col-reverse .page-sports__image-wrapper {
    order: 1;
  }

  .page-sports__grid-2-col-reverse .page-sports__text-content {
    order: 2;
  }

  .page-sports__text-content .page-sports__btn-primary {
    margin-top: 20px;
  }
}

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

  .page-sports__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-sports__hero-content {
    position: static;
    transform: none;
    background: rgba(26, 26, 46, 0.9); /* Darker overlay for mobile */
    border-radius: 0;
    padding: 30px 15px;
    margin-top: -100px; /* Pull up to overlap image slightly */
  }

  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }

  .page-sports__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-sports__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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__grid-3-col,
  .page-sports__grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-sports__text-block {
    font-size: 1em;
  }

  .page-sports__card,
  .page-sports__feature-item {
    padding: 20px;
  }

  .page-sports__feature-icon {
    width: 80px;
    height: 80px;
  }

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

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

  .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__video-section {
    padding-top: 10px !important;
  }

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