/* style/sports.css */

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

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

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand primary color for titles */
  line-height: 1.2;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

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

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-sports__hero-content {
  width: 100%;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
  z-index: 1;
}

.page-sports__hero-title {
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF; /* White for hero title on dark background */
  margin-bottom: 20px;
  /* clamp for font size */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

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

/* CTA Buttons */
.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%;
  box-sizing: border-box;
}

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

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-top: 20px; /* Space from primary button if stacked */
}

.page-sports__btn-secondary:hover {
  background-color: rgba(38, 169, 224, 0.1);
  transform: translateY(-2px);
}

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

.page-sports__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

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

.page-sports__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

/* Sports Grid */
.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__sport-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-sports__sport-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-sports__sport-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Bet Types List */
.page-sports__bet-types-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__list-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
  border-left: 4px solid #26A9E0;
}

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

/* Image-Text Layout */
.page-sports__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-sports__image-text-layout--reversed {
  flex-direction: row-reverse;
}

.page-sports__text-content {
  flex: 1;
}

.page-sports__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__live-betting-image,
.page-sports__mobile-app-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-sports__promotion-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #ffffff;
}

.page-sports__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-sports__promotion-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Responsible Gambling List */
.page-sports__responsible-gambling-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__responsible-gambling-list .page-sports__list-item {
  border-left: 4px solid #EA7C07; /* Orange for responsible gambling emphasis */
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.15); /* Slightly darker for question */
  color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #ffffff;
}

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

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Final CTA Section */
.page-sports__cta-final-section {
  background: linear-gradient(135deg, #26A9E0, #1f8ec4);
  padding: 80px 0;
  color: #ffffff;
  margin-top: 60px;
}

.page-sports__cta-final-content {
  max-width: 900px;
}

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

.page-sports__cta-final-section .page-sports__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__image-text-layout {
    flex-direction: column;
  }
  .page-sports__image-text-layout--reversed {
    flex-direction: column-reverse;
  }
  .page-sports__live-betting-image,
  .page-sports__mobile-app-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__hero-content {
    margin-top: 20px;
  }
  .page-sports__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important;
    margin-bottom: 10px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__btn-secondary {
    margin-top: 0;
  }
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 10px 20px;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__hero-image-wrapper,
  .page-sports__hero-content,
  .page-sports__cta-final-content,
  .page-sports__image-text-layout,
  .page-sports__text-content,
  .page-sports__image-content,
  .page-sports__faq-list,
  .page-sports__bet-types-list,
  .page-sports__responsible-gambling-list,
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promotions-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-sports__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__video-section {
    padding-top: 10px !important;
  }
  /* Ensure video elements themselves are responsive */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Video containers */
  .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;
  }
  /* Multiple buttons in a group */
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__hero-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }
  .page-sports__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-sports__faq-answer {
    font-size: 0.9em;
    padding: 8px 15px;
  }
}