/* style/sports.css */

/* Base styles for the page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Assuming body background is #1a1a1a from shared.css */
}

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

.page-sports__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: inherit;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

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

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-content {
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

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

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Buttons */
.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #ffffff; /* Ensures contrast on red */
  border: 2px solid #C30808;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #ffffff;
  color: #C30808; /* Custom color for register/login */
}

/* Intro Section */
.page-sports__intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 769px) {
  .page-sports__intro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-sports__intro-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333333;
}

.page-sports__intro-image-wrapper {
  text-align: center;
}

.page-sports__intro-image {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

/* Sports Categories Section */
.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-sports__sport-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__sport-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__sport-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

@media (min-width: 769px) {
  .page-sports__live-betting-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-sports__live-betting-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333333;
}

.page-sports__sub-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__live-betting-image {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__video-link-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  cursor: pointer;
}

/* Promotions Section */
.page-sports__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-sports__promotion-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__promotion-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__promotion-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-sports__promotions-image {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__cta-container {
  text-align: center;
  margin-top: 40px;
}

/* How-To Section */
.page-sports__how-to-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 769px) {
  .page-sports__how-to-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.page-sports__how-to-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.page-sports__how-to-step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__how-to-item p {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* Mobile App Section */
.page-sports__mobile-app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 769px) {
  .page-sports__mobile-app-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-sports__mobile-app-image-wrapper {
    order: 2; /* Image on right for desktop */
  }
  .page-sports__mobile-app-text {
    order: 1; /* Text on left for desktop */
  }
}

.page-sports__mobile-app-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #ffffff;
}

.page-sports__mobile-app-image-wrapper {
  text-align: center;
}

.page-sports__mobile-app-image {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-sports__faq-item {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}

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

.page-sports__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  color: #017439;
  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 25px;
  font-size: 1.05em;
  color: #555555;
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* General Image/Video/Button Responsive */
.page-sports img, .page-sports video {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-sports__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

  .page-sports__content-area {
    padding: 30px 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px; /* Space between stacked buttons */
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-sports__intro-grid,
  .page-sports__live-betting-grid,
  .page-sports__mobile-app-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__sports-grid,
  .page-sports__promotions-grid,
  .page-sports__how-to-list {
    grid-template-columns: 1fr;
  }

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

  .page-sports__intro-image-wrapper,
  .page-sports__live-betting-visuals,
  .page-sports__mobile-app-image-wrapper,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__video-wrapper video {
    min-width: unset;
    min-height: unset;
  }

  .page-sports__mobile-app-image-wrapper {
    order: unset; /* Reset order for mobile */
  }
  .page-sports__mobile-app-text {
    order: unset; /* Reset order for mobile */
  }
}