/* style/sports.css */
/* body background is #121212 (dark), so text should be light by default */
.page-sports {
  color: #ffffff; /* Default text color for light contrast on dark body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background is transparent to show body background */
}

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

.page-sports__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H1 rules applied to H2 for responsiveness */
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #1a1a1a; /* Slightly lighter than body for distinction */
  color: #ffffff;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit hero image height */
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 30px 20px;
  z-index: 1;
  margin-top: -100px; /* Pull content slightly over image for visual flow */
}

.page-sports__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

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

.page-sports__btn-primary:hover {
  background-color: #1e87c2;
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Specific login button color */
a[href*="pl_1772764845703_pqu5xuc0q"].page-sports__btn-secondary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

a[href*="pl_1772764845703_pqu5xuc0q"].page-sports__btn-secondary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* Video Section */
.page-sports__video-section {
  background-color: #1a1a1a;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  padding-top: 10px; /* Small top padding */
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 100%; /* Ensure desktop width is 100% for flex child */
  box-sizing: border-box;
}

.page-sports__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-sports__video-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__video-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05em;
}

/* Content Sections */
.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

.page-sports__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff; /* Light text on dark background */
}

.page-sports__image-content-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-sports__content-image {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-sports__card-image {
  width: 100%; /* Large image for card */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

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

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

/* Betting List & Guide List */
.page-sports__betting-list,
.page-sports__guide-list,
.page-sports__promo-list,
.page-sports__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__betting-list li,
.page-sports__guide-list li,
.page-sports__promo-list li,
.page-sports__advantage-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
}

.page-sports__betting-list li::before,
.page-sports__guide-list li::before,
.page-sports__promo-list li::before,
.page-sports__advantage-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-sports__guide-list h3 {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 5px;
}

/* Floating CTA */
.page-sports__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.page-sports__floating-btn {
  background-color: #EA7C07;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 200px; /* Limit width for floating button */
  text-align: center;
}

.page-sports__floating-btn:hover {
  background-color: #d16b06;
  transform: translateY(-3px);
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent on light bg for distinction */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text on light background */
}

.page-sports__faq-item details {
    background-color: transparent;
    border: none;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -50px;
  }
  .page-sports__hero-image-wrapper {
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__video-section,
  .page-sports__about-section,
  .page-sports__categories-section,
  .page-sports__betting-options,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__why-choose,
  .page-sports__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__hero-section {
    padding-bottom: 30px;
  }

  .page-sports__hero-content {
    margin-top: 0; /* Remove negative margin on mobile */
    padding-top: 20px;
  }

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

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

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

  .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__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-sports__category-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__card-image {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-sports__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min image size */
    min-height: 200px !important;
  }

  .page-sports__floating-cta {
    bottom: 15px;
    right: 15px;
  }

  .page-sports__floating-btn {
    max-width: 180px;
    padding: 12px 20px;
  }

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

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