.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Body background is #121212 (dark), so text is white */
  background-color: #121212;
}

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

.page-sports__dark-bg {
  background-color: #1A237E; /* Auxiliary color for dark sections */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  position: relative;
  overflow: hidden;
  background-color: #1A237E; /* Dark blue background */
}

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

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

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

.page-sports__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-sports__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  text-align: center;
  color: #FFD700; /* Gold for titles */
  padding-top: 40px;
}

.page-sports__light-bg .page-sports__section-title {
  color: #1A237E; /* Dark blue for titles on light background */
}

.page-sports__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-sports__light-bg .page-sports__text-block {
  color: #333333;
}

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

.page-sports__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
  justify-items: center;
}

.page-sports__grid-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Feature List */
.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-sports__list-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for list items */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid #FFD700;
  font-size: 1.1em;
  line-height: 1.6;
  color: #ffffff;
}

.page-sports__list-item h4 {
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.page-sports__light-bg .page-sports__list-item {
  background-color: #ffffff;
  color: #333333;
  border-left-color: #1A237E;
}

.page-sports__light-bg .page-sports__list-item h4 {
  color: #1A237E;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-small,
.page-sports__btn-inline {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #1A237E; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
  transform: translateY(-2px);
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 25px;
  background-color: #1A237E;
  color: #FFD700;
  border: 1px solid #FFD700;
  margin-top: 15px;
}

.page-sports__btn-small:hover {
  background-color: #FFD700;
  color: #1A237E;
}

.page-sports__btn-inline {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 20px;
  background-color: #FFD700;
  color: #1A237E;
  border: none;
  margin-top: 10px;
}

.page-sports__btn-inline:hover {
  background-color: #e6c200;
}

/* Card Styling */
.page-sports__advantage-grid,
.page-sports__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-sports__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: #1A237E;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-sports__card .page-sports__btn-small {
  margin: 0 auto 20px;
}

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

/* Video Section */
.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-sports__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay */
  z-index: 1;
  pointer-events: none; /* Allow clicks to pass through to video */
}

.page-sports__video-cta-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: #FFD700;
  color: #1A237E;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-sports__video-cta-button:hover {
  background-color: #e6c200;
}

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

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

.page-sports__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-item.active .page-sports__faq-question {
  border-bottom-color: transparent;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

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

.page-sports__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

/* Call to Action Section */
.page-sports__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1A237E; /* Dark blue background */
}

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

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

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

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

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-small,
  .page-sports__btn-inline,
  .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__hero-buttons,
  .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;
    flex-direction: column;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__text-block {
    font-size: 0.95em;
  }
  .page-sports__container,
  .page-sports__introduction-section,
  .page-sports__betting-types-section,
  .page-sports__advantages-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__image-grid,
  .page-sports__advantage-grid,
  .page-sports__promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__grid-image,
  .page-sports__card-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
  }
  .page-sports__card {
    padding: 15px;
  }
  .page-sports__video-wrapper {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .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: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 12px 20px;
  }
  .page-sports__video-cta-button {
    font-size: 0.9em;
    padding: 12px 20px;
  }
}