/* style/sports.css */
:root {
  --page-sports-primary-color: #26A9E0;
  --page-sports-secondary-color: #FFFFFF;
  --page-sports-dark-text: #333333;
  --page-sports-light-text: #ffffff;
  --page-sports-accent-color: #EA7C07;
  --page-sports-bg-light: #f8f9fa;
  --page-sports-bg-dark: #1a1a1a; /* Darker background for contrast */
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-sports-dark-text); /* Default text color for light backgrounds */
  background-color: var(--page-sports-bg-light);
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: var(--page-sports-primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

/* Color Contrast Fixes based on body background */
.page-sports__dark-bg {
  background-color: var(--page-sports-bg-dark);
  color: var(--page-sports-light-text);
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__hero-title,
.page-sports__dark-bg .page-sports__feature-title,
.page-sports__dark-bg .page-sports__category-title,
.page-sports__dark-bg .page-sports__promotion-title,
.page-sports__dark-bg .page-sports__text-block-title,
.page-sports__dark-bg .page-sports__step-title,
.page-sports__dark-bg .page-sports__faq-title {
  color: var(--page-sports-secondary-color); /* White text on dark background */
}

.page-sports__light-bg {
  background-color: var(--page-sports-secondary-color);
  color: var(--page-sports-dark-text);
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__hero-title,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__category-title,
.page-sports__light-bg .page-sports__promotion-title,
.page-sports__light-bg .page-sports__text-block-title,
.page-sports__light-bg .page-sports__step-title,
.page-sports__light-bg .page-sports__faq-title {
  color: var(--page-sports-primary-color); /* Brand blue text on light background */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
  background-color: var(--page-sports-primary-color);
  color: var(--page-sports-light-text);
  border: 2px solid var(--page-sports-primary-color);
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--page-sports-primary-color);
  border: 2px solid var(--page-sports-primary-color);
}

.page-sports__btn-secondary:hover {
  background-color: var(--page-sports-primary-color);
  color: var(--page-sports-light-text);
}

.page-sports__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

/* Sections */
.page-sports__hero-section,
.page-sports__why-choose-section,
.page-sports__categories-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__mobile-app-section,
.page-sports__get-started-section,
.page-sports__responsible-gambling-section,
.page-sports__faq-section,
.page-sports__final-cta-section {
  padding: 80px 0;
  position: relative;
}

/* Hero Section */
.page-sports__hero-section {
  padding-top: 100px; /* Adjust based on header height, if not handled by shared body padding */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  text-align: left;
  overflow: hidden;
}

.page-sports__hero-section .page-sports__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-sports__hero-content {
  flex: 1;
  min-width: 300px;
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-sports__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: right;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Why Choose Section */
.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__feature-item {
  background-color: var(--page-sports-secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-sports__feature-item:hover {
  transform: translateY(-10px);
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-sports__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__feature-text {
  font-size: 1em;
  color: #666;
}

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

.page-sports__category-card {
  display: block;
  text-decoration: none;
  background-color: var(--page-sports-secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-sports-dark-text);
}

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

.page-sports__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-sports__category-card h3,
.page-sports__category-card p {
  padding: 0 20px;
}

.page-sports__category-title {
  font-size: 1.4em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--page-sports-primary-color);
}

.page-sports__category-text {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
}

/* Live Betting Section */
.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.page-sports__live-betting-content .page-sports__text-block {
  flex: 1;
  min-width: 300px;
}

.page-sports__live-betting-content .page-sports__image-block {
  flex: 1;
  min-width: 400px;
  text-align: right;
}

.page-sports__image-item {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-sports__text-block-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-sports-primary-color);
}

.page-sports__text-block-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--page-sports-dark-text);
}

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

.page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-sports__promotion-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--page-sports-secondary-color);
}

.page-sports__promotion-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 25px;
}

/* Mobile App Section */
.page-sports__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse;
  margin-top: 50px;
}

.page-sports__mobile-app-content .page-sports__text-block,
.page-sports__mobile-app-content .page-sports__image-block {
  flex: 1;
  min-width: 300px;
}

.page-sports__mobile-app-content .page-sports__text-block {
  text-align: left;
}

.page-sports__app-features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-sports__app-feature-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-sports__app-feature-item::before {
  content: '✔';
  color: var(--page-sports-primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Get Started Section */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.page-sports__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--page-sports-primary-color);
  color: var(--page-sports-light-text);
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--page-sports-secondary-color);
}

.page-sports__step-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 25px;
}

/* Responsible Gambling Section */
.page-sports__responsible-gambling-section .page-sports__container {
  text-align: center;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--page-sports-bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--page-sports-secondary-color);
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--page-sports-primary-color);
  transition: transform 0.3s ease;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(0deg); /* '+' becomes '-' */
  color: var(--page-sports-primary-color);
}

.page-sports__faq-answer p {
  margin-bottom: 15px;
}

.page-sports__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-sports__final-cta-section {
  text-align: center;
  padding: 100px 0;
}

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

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

  .page-sports__hero-section .page-sports__container {
    flex-direction: column;
    text-align: center;
  }

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

  .page-sports__live-betting-content {
    flex-direction: column;
  }

  .page-sports__mobile-app-content {
    flex-direction: column-reverse;
  }

  .page-sports__mobile-app-content .page-sports__text-block {
    text-align: center;
  }
}

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

  .page-sports__hero-section,
  .page-sports__why-choose-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__mobile-app-section,
  .page-sports__get-started-section,
  .page-sports__responsible-gambling-section,
  .page-sports__faq-section,
  .page-sports__final-cta-section {
    padding: 60px 0;
  }

  .page-sports__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-sports__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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Image Responsive Adaption */
  .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-image-wrapper,
  .page-sports__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset on mobile for hero */
  }

  /* Video Responsive Adaption (if any video is 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__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}