/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-sports__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff; /* Default for dark sections */
  line-height: 1.2;
}

.page-sports__description,
.page-sports__text-block {
  font-size: 17px;
  text-align: center;
  margin-bottom: 25px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-block {
    text-align: left;
    margin-bottom: 20px;
}

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

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

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-sports__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
}

.page-sports__hero-content .page-sports__description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  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;
}

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

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

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

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

/* Overview Section */
.page-sports__overview-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-sports__overview-section .page-sports__section-title {
    color: #333333;
}

.page-sports__overview-section .page-sports__description,
.page-sports__overview-section .page-sports__text-block {
    color: #555555;
}

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

.page-sports__card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

/* Bet Types Section */
.page-sports__bet-types-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-sports__bet-types-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__bet-types-section .page-sports__description {
    color: #f0f0f0;
}

.page-sports__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__text-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  color: #ffffff;
}

.page-sports__text-card .page-sports__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__text-card .page-sports__card-text {
  color: #f0f0f0;
  font-size: 16px;
}

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

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__guide-section .page-sports__section-title {
    color: #333333;
}

.page-sports__guide-section .page-sports__text-block {
    color: #555555;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-sports__guide-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-sports__guide-step-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-sports__guide-step-text {
  font-size: 16px;
  color: #555555;
  margin-top: 0;
}

/* Tips Section */
.page-sports__tips-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-sports__tips-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__tips-section .page-sports__description {
    color: #f0f0f0;
}

.page-sports__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__tips-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  height: 100%;
  color: #ffffff;
}

.page-sports__tips-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__tips-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__promotions-section .page-sports__section-title {
    color: #333333;
}

.page-sports__promotions-section .page-sports__text-block {
    color: #555555;
}

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

.page-sports__promotion-grid .page-sports__card {
    background-color: #f9f9f9;
    color: #333333;
}

.page-sports__promotion-grid .page-sports__card-title {
    color: #26A9E0;
}

.page-sports__promotion-grid .page-sports__card-text {
    color: #555555;
}

.page-sports__card-link {
  display: inline-block;
  margin-top: 15px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-sports__card-link:hover {
  color: #1e87b7;
  text-decoration: underline;
}

/* Support Section */
.page-sports__support-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-sports__support-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__support-section .page-sports__description {
    color: #f0f0f0;
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  height: 100%;
  color: #ffffff;
}

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

.page-sports__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__faq-section .page-sports__section-title {
    color: #333333;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-sports__faq-item[open] .page-sports__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

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

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

.page-sports__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #555555;
  text-align: left;
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-sports__conclusion-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__conclusion-section .page-sports__description {
    color: #f0f0f0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 0 15px;
  }

  .page-sports__grid-3-cols,
  .page-sports__grid-2-cols,
  .page-sports__promotion-grid,
  .page-sports__features-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__guide-item {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .page-sports__guide-item::before {
      margin-bottom: 15px;
  }

  .page-sports__guide-step-title {
      text-align: center;
  }

  .page-sports__guide-step-text {
      text-align: center;
  }

}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-sports__main-title {
    font-size: 32px;
  }

  .page-sports__description,
  .page-sports__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-sports__section-title {
    font-size: 26px;
    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;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General content area padding for mobile */
  .page-sports__container,
  .page-sports__overview-section,
  .page-sports__bet-types-section,
  .page-sports__guide-section,
  .page-sports__tips-section,
  .page-sports__promotions-section,
  .page-sports__support-section,
  .page-sports__faq-section,
  .page-sports__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Image responsive rules for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__card-image {
    height: auto; /* Allow auto height for card images on mobile */
    min-height: 200px;
  }

  /* Video responsive rules for mobile (if any video elements were added) */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-sports__faq-answer {
    font-size: 14px;
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 28px;
  }

  .page-sports__section-title {
    font-size: 24px;
  }

  .page-sports__card-title,
  .page-sports__tips-title,
  .page-sports__feature-title,
  .page-sports__guide-step-title {
    font-size: 18px;
  }

  .page-sports__description,
  .page-sports__text-block,
  .page-sports__card-text,
  .page-sports__tips-text,
  .page-sports__feature-text,
  .page-sports__guide-step-text {
    font-size: 14px;
  }
}